Class: AuthLh::Shop

Inherits:
Object
  • Object
show all
Defined in:
lib/auth_lh/shop.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Shop

Returns a new instance of Shop.



5
6
7
8
9
# File 'lib/auth_lh/shop.rb', line 5

def initialize(attributes={})
  attributes.each do |k,v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/auth_lh/shop.rb', line 3

def code
  @code
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/auth_lh/shop.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/auth_lh/shop.rb', line 3

def name
  @name
end

#stock_descriptionObject

Returns the value of attribute stock_description.



3
4
5
# File 'lib/auth_lh/shop.rb', line 3

def stock_description
  @stock_description
end