Class: Inttegro::Resources::Apps

Inherits:
Object
  • Object
show all
Defined in:
lib/inttegro/resources/apps.rb

Instance Method Summary collapse

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

#lookupObject



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