Class: Productive::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/productive/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
# File 'lib/productive/configuration.rb', line 8

def initialize
  self.api_key = ENV['PRODUCTIVE_API_KEY']
  self. = ENV['PRODUCTIVE_ACCOUNT_ID']
  self.base_url = 'https://api.productive.io/api/v2/'
  self.paginator = JsonApiPaginator
  self.query_builder = JsonApiQueryBuilder
  self.connection_options = {}
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def 
  @account_id
end

#api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def base_url
  @base_url
end

#connection_optionsObject

Returns the value of attribute connection_options.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def connection_options
  @connection_options
end

#paginatorObject

Returns the value of attribute paginator.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def paginator
  @paginator
end

#query_builderObject

Returns the value of attribute query_builder.



6
7
8
# File 'lib/productive/configuration.rb', line 6

def query_builder
  @query_builder
end