Class: Crowdskout::Services::BaseService

Inherits:
Object
  • Object
show all
Defined in:
lib/crowdskout/services/base_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

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_keyObject

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