Class: Xsys::Model::ProviderKind

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ProviderKind

Returns a new instance of ProviderKind.



6
7
8
9
10
11
12
13
14
# File 'lib/xsys/model/provider_kind.rb', line 6

def initialize(attributes={})
  attributes.each do |k,v|
  if k == 'kind'
    @kind = ProviderKind.new(v)
  else
    self.send("#{k}=", v)
  end
  end
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end