Class: HubspotV3::Config
- Inherits:
-
Object
- Object
- HubspotV3::Config
- Defined in:
- lib/hubspot_v3/config.rb
Instance Attribute Summary collapse
-
#contract ⇒ Object
writeonly
Sets the attribute contract.
- #token ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#contract=(value) ⇒ Object (writeonly)
Sets the attribute contract
3 4 5 |
# File 'lib/hubspot_v3/config.rb', line 3 def contract=(value) @contract = value end |
#token ⇒ Object
5 6 7 |
# File 'lib/hubspot_v3/config.rb', line 5 def token @token || raise('Hubspot API key is not set. Set it with HubspotV3.config.token="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"') end |
Instance Method Details
#apikey= ⇒ Object
9 10 11 12 13 |
# File 'lib/hubspot_v3/config.rb', line 9 def apikey=(*) raise 'Hubspot API keys are deprecated. Don\'t use HubspotV3.config.apikey="hubspotApiKeyNoLongerWorks".' + ' Make sure you set up Hubspot private app and set the token for this gem' + ' with HubspotV3.config.token="xxMyHubspotPrivateAppTokenxx"' end |