Class: Ecommerce::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ecommerce/resources/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
# File 'lib/ecommerce/resources/base.rb', line 4

def initialize(attribute={})
  attribute.each do |k, v|
    set_attribute(k, v)
  end
end

Class Method Details

.clientObject



10
11
12
# File 'lib/ecommerce/resources/base.rb', line 10

def self.client
  Ecommerce.client
end