Class: AuthorizeNet::SIM::HostedReceiptPage
- Inherits:
-
Object
- Object
- AuthorizeNet::SIM::HostedReceiptPage
- 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
-
#background_url ⇒ Object
Returns the value of attribute background_url.
-
#color_background ⇒ Object
Returns the value of attribute color_background.
-
#color_link ⇒ Object
Returns the value of attribute color_link.
-
#color_text ⇒ Object
Returns the value of attribute color_text.
-
#footer_html ⇒ Object
Returns the value of attribute footer_html.
-
#header_html ⇒ Object
Returns the value of attribute header_html.
-
#link_method ⇒ Object
Returns the value of attribute link_method.
-
#link_text ⇒ Object
Returns the value of attribute link_text.
-
#link_url ⇒ Object
Returns the value of attribute link_url.
-
#logo_url ⇒ Object
Returns the value of attribute logo_url.
Instance Method Summary collapse
Methods included from Model
Instance Attribute Details
#background_url ⇒ Object
Returns the value of attribute background_url.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def background_url @background_url end |
#color_background ⇒ Object
Returns the value of attribute color_background.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def color_background @color_background end |
#color_link ⇒ Object
Returns the value of attribute color_link.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def color_link @color_link end |
#color_text ⇒ Object
Returns the value of attribute color_text.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def color_text @color_text end |
#footer_html ⇒ Object
Returns the value of attribute footer_html.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def @footer_html end |
#header_html ⇒ Object
Returns the value of attribute header_html.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def header_html @header_html end |
#link_method ⇒ Object
Returns the value of attribute link_method.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def link_method @link_method end |
#link_text ⇒ Object
Returns the value of attribute link_text.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def link_text @link_text end |
#link_url ⇒ Object
Returns the value of attribute link_url.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def link_url @link_url end |
#logo_url ⇒ Object
Returns the value of attribute logo_url.
13 14 15 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 13 def logo_url @logo_url end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/authorize_net/sim/hosted_receipt_page.rb', line 15 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 |