Class: HubspotV3::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/hubspot_v3/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contract=(value) ⇒ Object (writeonly)

Sets the attribute contract

Parameters:

  • value

    the value to set the attribute contract to.



3
4
5
# File 'lib/hubspot_v3/config.rb', line 3

def contract=(value)
  @contract = value
end

#tokenObject



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