Class: Klarna::Checkout::Gui

Inherits:
Resource show all
Defined in:
lib/klarna/checkout/gui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

defaults, defaults=, #initialize, #json_sanitize, #to_json

Methods included from HasOne

#has_one

Methods included from HasMany

#has_many

Constructor Details

This class inherits a constructor from Klarna::Checkout::Resource

Instance Attribute Details

#layoutObject

Returns the value of attribute layout.



4
5
6
# File 'lib/klarna/checkout/gui.rb', line 4

def layout
  @layout
end

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/klarna/checkout/gui.rb', line 4

def options
  @options
end

#snippetObject

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_jsonObject



6
7
8
9
10
11
# File 'lib/klarna/checkout/gui.rb', line 6

def as_json
  json_sanitize({
    :layout  => @layout,
    :options => @options
  })
end