Class: Hubspot::Configuration
- Inherits:
-
Object
- Object
- Hubspot::Configuration
- Defined in:
- lib/hubspot.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#hapikey ⇒ Object
Returns the value of attribute hapikey.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Instance Method Summary collapse
- #hubspot? ⇒ Boolean
- #hubspot_transaction_email? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
(hapikey, user_name, password, address, port).
Constructor Details
#initialize ⇒ Configuration
(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
#address ⇒ Object
Returns the value of attribute address.
29 30 31 |
# File 'lib/hubspot.rb', line 29 def address @address end |
#hapikey ⇒ Object
Returns the value of attribute hapikey.
29 30 31 |
# File 'lib/hubspot.rb', line 29 def hapikey @hapikey end |
#password ⇒ Object
Returns the value of attribute password.
29 30 31 |
# File 'lib/hubspot.rb', line 29 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
29 30 31 |
# File 'lib/hubspot.rb', line 29 def port @port end |
#user_name ⇒ Object
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
39 40 41 |
# File 'lib/hubspot.rb', line 39 def hubspot? ActionMailer::Base.delivery_method == :hubspot end |
#hubspot_transaction_email? ⇒ Boolean
43 44 45 |
# File 'lib/hubspot.rb', line 43 def hubspot_transaction_email? ActionMailer::Base.delivery_method == :hubspot_transaction_email end |