Class: Crowdskout::Services::BaseService
- Inherits:
-
Object
- Object
- Crowdskout::Services::BaseService
- Defined in:
- lib/crowdskout/services/base_service.rb
Direct Known Subclasses
AttributeService, FieldService, ProfileService, QuartermasterService
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(api_key = nil, access_token = nil) ⇒ BaseService
constructor
A new instance of BaseService.
Constructor Details
#initialize(api_key = nil, access_token = nil) ⇒ BaseService
Returns a new instance of BaseService.
13 14 15 16 |
# File 'lib/crowdskout/services/base_service.rb', line 13 def initialize(api_key = nil, access_token = nil) @api_key = api_key @access_token = access_token end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
10 11 12 |
# File 'lib/crowdskout/services/base_service.rb', line 10 def access_token @access_token end |
#api_key ⇒ Object
Returns the value of attribute api_key.
10 11 12 |
# File 'lib/crowdskout/services/base_service.rb', line 10 def api_key @api_key end |