Class: Klarna::Checkout::Gui
- Defined in:
- lib/klarna/checkout/gui.rb
Instance Attribute Summary collapse
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#options ⇒ Object
Returns the value of attribute options.
-
#snippet ⇒ Object
Returns the value of attribute snippet.
Instance Method Summary collapse
Methods inherited from Resource
defaults, defaults=, #initialize, #json_sanitize, #to_json
Methods included from HasOne
Methods included from HasMany
Constructor Details
This class inherits a constructor from Klarna::Checkout::Resource
Instance Attribute Details
#layout ⇒ Object
Returns the value of attribute layout.
4 5 6 |
# File 'lib/klarna/checkout/gui.rb', line 4 def layout @layout end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/klarna/checkout/gui.rb', line 4 def @options end |
#snippet ⇒ Object
Returns the value of attribute snippet.
4 5 6 |
# File 'lib/klarna/checkout/gui.rb', line 4 def snippet @snippet end |
Instance Method Details
#as_json ⇒ Object
6 7 8 9 10 11 |
# File 'lib/klarna/checkout/gui.rb', line 6 def as_json json_sanitize({ :layout => @layout, :options => @options }) end |