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.



6
7
8
# File 'lib/authorize_net/email_receipt.rb', line 6

def email_customer
  @email_customer
end

Returns the value of attribute footer.



6
7
8
# File 'lib/authorize_net/email_receipt.rb', line 6

def footer
  @footer
end

#headerObject

Returns the value of attribute header.



6
7
8
# File 'lib/authorize_net/email_receipt.rb', line 6

def header
  @header
end

#merchant_emailObject

Returns the value of attribute merchant_email.



6
7
8
# File 'lib/authorize_net/email_receipt.rb', line 6

def merchant_email
  @merchant_email
end

Instance Method Details

#to_hashObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/authorize_net/email_receipt.rb', line 8

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