Class: AuthorizeNet::EmailReceipt

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/authorize_net/email_receipt.rb

Overview

Models an email receipt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

#initialize, #to_a

Instance Attribute Details

#email_customerObject

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

Returns the value of attribute footer.



8
9
10
# File 'lib/authorize_net/email_receipt.rb', line 8

def footer
  @footer
end

#headerObject

Returns the value of attribute header.



8
9
10
# File 'lib/authorize_net/email_receipt.rb', line 8

def header
  @header
end

#merchant_emailObject

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_hashObject



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