Class: InceApi::GetSims
- Inherits:
-
Object
- Object
- InceApi::GetSims
- Defined in:
- lib/ince_api/get_sims.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(access_token:, params: {}) ⇒ GetSims
constructor
A new instance of GetSims.
- #sims ⇒ Object
Constructor Details
#initialize(access_token:, params: {}) ⇒ GetSims
5 6 7 8 |
# File 'lib/ince_api/get_sims.rb', line 5 def initialize(access_token:, params: {}) @access_token = access_token @params = params end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
3 4 5 |
# File 'lib/ince_api/get_sims.rb', line 3 def headers @headers end |
Instance Method Details
#sims ⇒ Object
10 11 12 13 14 15 |
# File 'lib/ince_api/get_sims.rb', line 10 def sims response = connection.request(request) @headers = response.each_header.to_h JSON.parse(response.body) end |