Class: Klarna::Checkout::Customer

Inherits:
Resource
  • Object
show all
Defined in:
lib/klarna/checkout/customer.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

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#as_jsonObject



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

def as_json
  json_sanitize({
    :type => @type
  })
end