Class: Hubspot::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject

Returns the value of attribute address.



29
30
31
# File 'lib/hubspot.rb', line 29

def address
  @address
end

#hapikeyObject

Returns the value of attribute hapikey.



29
30
31
# File 'lib/hubspot.rb', line 29

def hapikey
  @hapikey
end

#passwordObject

Returns the value of attribute password.



29
30
31
# File 'lib/hubspot.rb', line 29

def password
  @password
end

#portObject

Returns the value of attribute port.



29
30
31
# File 'lib/hubspot.rb', line 29

def port
  @port
end

#user_nameObject

Returns the value of attribute user_name.



29
30
31
# File 'lib/hubspot.rb', line 29

def user_name
  @user_name
end

Instance Method Details

#hubspot?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/hubspot.rb', line 31

def hubspot?
  ActionMailer::Base.delivery_method == :hubspot
end

#hubspot_transaction_email?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/hubspot.rb', line 35

def hubspot_transaction_email?
  ActionMailer::Base.delivery_method == :hubspot_transaction_email
end