Class: AuthorizeNet::EmailReceipt
- Inherits:
-
Object
- Object
- AuthorizeNet::EmailReceipt
- Includes:
- Model
- Defined in:
- lib/authorize_net/email_receipt.rb
Overview
Models an email receipt.
Instance Attribute Summary collapse
-
#email_customer ⇒ Object
Returns the value of attribute email_customer.
-
#footer ⇒ Object
Returns the value of attribute footer.
-
#header ⇒ Object
Returns the value of attribute header.
-
#merchant_email ⇒ Object
Returns the value of attribute merchant_email.
Instance Method Summary collapse
Methods included from Model
Instance Attribute Details
#email_customer ⇒ Object
Returns the value of attribute email_customer.
8 9 10 |
# File 'lib/authorize_net/email_receipt.rb', line 8 def email_customer @email_customer end |
#footer ⇒ Object
Returns the value of attribute footer.
8 9 10 |
# File 'lib/authorize_net/email_receipt.rb', line 8 def @footer end |
#header ⇒ Object
Returns the value of attribute header.
8 9 10 |
# File 'lib/authorize_net/email_receipt.rb', line 8 def header @header end |
#merchant_email ⇒ Object
Returns the value of attribute merchant_email.
8 9 10 |
# File 'lib/authorize_net/email_receipt.rb', line 8 def merchant_email @merchant_email end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/authorize_net/email_receipt.rb', line 10 def to_hash hash = { :header => @header, :footer => @footer, :merchant_email => @merchant_email, :email_customer => @email_customer } hash.delete_if {|k, v| v.nil?} hash.merge(@address.to_hash) unless @address.nil? hash end |