Class: Klarna::Checkout::Merchant
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/klarna/checkout/merchant.rb
Instance Attribute Summary collapse
-
#checkout_uri ⇒ Object
Returns the value of attribute checkout_uri.
-
#confirmation_uri ⇒ Object
Returns the value of attribute confirmation_uri.
-
#id ⇒ Object
Returns the value of attribute id.
-
#push_uri ⇒ Object
Returns the value of attribute push_uri.
-
#terms_uri ⇒ Object
Returns the value of attribute terms_uri.
-
#validation_uri ⇒ Object
Returns the value of attribute validation_uri.
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
#checkout_uri ⇒ Object
Returns the value of attribute checkout_uri.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def checkout_uri @checkout_uri end |
#confirmation_uri ⇒ Object
Returns the value of attribute confirmation_uri.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def confirmation_uri @confirmation_uri end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def id @id end |
#push_uri ⇒ Object
Returns the value of attribute push_uri.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def push_uri @push_uri end |
#terms_uri ⇒ Object
Returns the value of attribute terms_uri.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def terms_uri @terms_uri end |
#validation_uri ⇒ Object
Returns the value of attribute validation_uri.
8 9 10 |
# File 'lib/klarna/checkout/merchant.rb', line 8 def validation_uri @validation_uri end |
Instance Method Details
#as_json ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/klarna/checkout/merchant.rb', line 14 def as_json json_sanitize({ :id => @id, :terms_uri => @terms_uri, :checkout_uri => @checkout_uri, :confirmation_uri => @confirmation_uri, :push_uri => @push_uri, :validation_uri => @validation_uri }) end |