Class: KiriminAja::Services::ProfileService
- Inherits:
-
Object
- Object
- KiriminAja::Services::ProfileService
- Defined in:
- lib/kiriminaja/services/profile/profile.rb
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(http) ⇒ ProfileService
constructor
A new instance of ProfileService.
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
#get ⇒ Object
10 11 12 |
# File 'lib/kiriminaja/services/profile/profile.rb', line 10 def get @http.get_json("/api/mitra/v6.2/profile") end |