Class: Host
- Inherits:
-
Object
- Object
- Host
- Includes:
- ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
- Defined in:
- lib/yadecli/model/host.rb
Overview
Host
Instance Attribute Summary collapse
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#domainId ⇒ Object
Returns the value of attribute domainId.
-
#environmentType ⇒ Object
Returns the value of attribute environmentType.
-
#hostName ⇒ Object
Returns the value of attribute hostName.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#isMaster ⇒ Object
Returns the value of attribute isMaster.
-
#name ⇒ Object
Returns the value of attribute name.
-
#osType ⇒ Object
Returns the value of attribute osType.
-
#roleId ⇒ Object
Returns the value of attribute roleId.
-
#zone ⇒ Object
Returns the value of attribute zone.
Instance Method Summary collapse
Instance Attribute Details
#datacenter ⇒ Object
Returns the value of attribute datacenter.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def datacenter @datacenter end |
#domainId ⇒ Object
Returns the value of attribute domainId.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def domainId @domainId end |
#environmentType ⇒ Object
Returns the value of attribute environmentType.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def environmentType @environmentType end |
#hostName ⇒ Object
Returns the value of attribute hostName.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def hostName @hostName end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def id @id end |
#ip ⇒ Object
Returns the value of attribute ip.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def ip @ip end |
#isMaster ⇒ Object
Returns the value of attribute isMaster.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def isMaster @isMaster end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def name @name end |
#osType ⇒ Object
Returns the value of attribute osType.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def osType @osType end |
#roleId ⇒ Object
Returns the value of attribute roleId.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def roleId @roleId end |
#zone ⇒ Object
Returns the value of attribute zone.
11 12 13 |
# File 'lib/yadecli/model/host.rb', line 11 def zone @zone end |
Instance Method Details
#attributes ⇒ Object
21 22 23 |
# File 'lib/yadecli/model/host.rb', line 21 def attributes instance_values end |
#attributes=(hash) ⇒ Object
15 16 17 18 19 |
# File 'lib/yadecli/model/host.rb', line 15 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |