Class: AuthorizeNet::SIM::HostedReceiptPage

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

Overview

Models a hosted receipt page.

Defined Under Namespace

Modules: LinkMethod

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Model

#initialize, #to_a

Instance Attribute Details

#background_urlObject

Returns the value of attribute background_url.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def background_url
  @background_url
end

#color_backgroundObject

Returns the value of attribute color_background.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def color_background
  @color_background
end

Returns the value of attribute color_link.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def color_link
  @color_link
end

#color_textObject

Returns the value of attribute color_text.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def color_text
  @color_text
end

Returns the value of attribute footer_html.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def footer_html
  @footer_html
end

#header_htmlObject

Returns the value of attribute header_html.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def header_html
  @header_html
end

Returns the value of attribute link_method.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def link_method
  @link_method
end

Returns the value of attribute link_text.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def link_text
  @link_text
end

Returns the value of attribute link_url.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def link_url
  @link_url
end

#logo_urlObject

Returns the value of attribute logo_url.



15
16
17
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15

def logo_url
  @logo_url
end

Instance Method Details

#to_hashObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 18

def to_hash
  hash = {
    :header_html_receipt => @header_html,
    :footer_html_receipt => @footer_html,
    :color_background => @color_background,
    :color_link => @color_link,
    :color_text => @color_text,
    :logo_url => @logo_url,
    :background_url => @background_url,
    :receipt_link_method => @link_method,
    :receipt_link_text => @link_text,
    :receipt_link_url => @link_url
  }
  hash.delete_if {|k, v| v.nil?}
  hash
end