Class: Xsys::Model::ProductProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/xsys/model/product_provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ProductProvider

Returns a new instance of ProductProvider.



7
8
9
10
11
# File 'lib/xsys/model/product_provider.rb', line 7

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

Instance Attribute Details

#activeObject

Returns the value of attribute active.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def active
  @active
end

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def address
  @address
end

#cuitObject

Returns the value of attribute cuit.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def cuit
  @cuit
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def id
  @id
end

#kindObject

Returns the value of attribute kind.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def kind
  @kind
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def name
  @name
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def phone
  @phone
end

#zip_codeObject

Returns the value of attribute zip_code.



4
5
6
# File 'lib/xsys/model/product_provider.rb', line 4

def zip_code
  @zip_code
end