Class: KiriminAja::Services::ProfileService

Inherits:
Object
  • Object
show all
Defined in:
lib/kiriminaja/services/profile/profile.rb

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ ProfileService

Returns a new instance of ProfileService.



6
7
8
# File 'lib/kiriminaja/services/profile/profile.rb', line 6

def initialize(http)
  @http = http
end

Instance Method Details

#getObject



10
11
12
# File 'lib/kiriminaja/services/profile/profile.rb', line 10

def get
  @http.get_json("/api/mitra/v6.2/profile")
end