Class: Hubspot::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

(hapikey, user_name, password, address, port)



31
32
33
34
35
36
37
# File 'lib/hubspot.rb', line 31

def initialize#(hapikey, user_name, password, address, port)
  # @hapikey = hapikey
  # @user_name = user_name
  # @password = password
  # @address = address
  # @port = port
end

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)


39
40
41
# File 'lib/hubspot.rb', line 39

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

#hubspot_transaction_email?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/hubspot.rb', line 43

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