Class: Productive::Configuration
- Inherits:
-
Object
- Object
- Productive::Configuration
- Defined in:
- lib/productive/configuration.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#connection_options ⇒ Object
Returns the value of attribute connection_options.
-
#paginator ⇒ Object
Returns the value of attribute paginator.
-
#query_builder ⇒ Object
Returns the value of attribute query_builder.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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.account_id = ENV['PRODUCTIVE_ACCOUNT_ID'] self.base_url = 'https://api.productive.io/api/v2/' self.paginator = JsonApiPaginator self.query_builder = JsonApiQueryBuilder self. = {} end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def account_id @account_id end |
#api_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def base_url @base_url end |
#connection_options ⇒ Object
Returns the value of attribute connection_options.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def @connection_options end |
#paginator ⇒ Object
Returns the value of attribute paginator.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def paginator @paginator end |
#query_builder ⇒ Object
Returns the value of attribute query_builder.
6 7 8 |
# File 'lib/productive/configuration.rb', line 6 def query_builder @query_builder end |