Class: CustomGateway::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/custom_gateway/models/category.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Category

Returns a new instance of Category.



5
6
7
8
9
# File 'lib/custom_gateway/models/category.rb', line 5

def initialize(params)
  self.id = params['id'] || ''
  self.name = params['name'] || ''
  self.full_path = params['full_path'] || ''
end

Instance Attribute Details

#full_pathObject

Returns the value of attribute full_path.



3
4
5
# File 'lib/custom_gateway/models/category.rb', line 3

def full_path
  @full_path
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/custom_gateway/models/category.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/custom_gateway/models/category.rb', line 3

def name
  @name
end