Class: Inttegro::Resources::Apps
- Inherits:
-
Object
- Object
- Inttegro::Resources::Apps
- Defined in:
- lib/inttegro/resources/apps.rb
Instance Method Summary collapse
- #create(payload) ⇒ Object
-
#initialize(http) ⇒ Apps
constructor
A new instance of Apps.
- #lookup ⇒ Object
- #update(payload) ⇒ Object
Constructor Details
#initialize(http) ⇒ Apps
Returns a new instance of Apps.
7 8 9 |
# File 'lib/inttegro/resources/apps.rb', line 7 def initialize(http) @http = T.let(http, Inttegro::HTTPClient) end |
Instance Method Details
#create(payload) ⇒ Object
11 12 13 |
# File 'lib/inttegro/resources/apps.rb', line 11 def create(payload) @http.post_resource("/apps/create", Inttegro::Application, :app, payload) end |
#lookup ⇒ Object
15 16 17 |
# File 'lib/inttegro/resources/apps.rb', line 15 def lookup @http.post_resource("/apps/lookup", Inttegro::Application, :app, {}) end |
#update(payload) ⇒ Object
19 20 21 |
# File 'lib/inttegro/resources/apps.rb', line 19 def update(payload) @http.post_resource("/apps/update", Inttegro::Application, :app, payload) end |