Module: Asana::Config
- Included in:
- Asana
- Defined in:
- lib/asana/config.rb
Constant Summary collapse
- API_VERSION =
'1.0'
- DEFAULT_ENDPOINT =
"https://app.asana.com/api/#{API_VERSION}/"
- USER_AGENT =
"Asana Ruby Gem #{Asana::VERSION}"
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
10 11 12 |
# File 'lib/asana/config.rb', line 10 def api_key @api_key end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/asana/config.rb', line 11 def configure yield self Resource.user = self.api_key Resource.password = '' Resource.format = :json Resource.site = DEFAULT_ENDPOINT end |