Class: Host

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, ActiveModel::Serializers::JSON, ActiveModel::Validations
Defined in:
lib/yadecli/model/host.rb

Overview

Host

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#datacenterObject

Returns the value of attribute datacenter.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def datacenter
  @datacenter
end

#domainIdObject

Returns the value of attribute domainId.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def domainId
  @domainId
end

#environmentTypeObject

Returns the value of attribute environmentType.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def environmentType
  @environmentType
end

#hostNameObject

Returns the value of attribute hostName.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def hostName
  @hostName
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def id
  @id
end

#ipObject

Returns the value of attribute ip.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def ip
  @ip
end

#isMasterObject

Returns the value of attribute isMaster.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def isMaster
  @isMaster
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def name
  @name
end

#osTypeObject

Returns the value of attribute osType.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def osType
  @osType
end

#roleIdObject

Returns the value of attribute roleId.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def roleId
  @roleId
end

#zoneObject

Returns the value of attribute zone.



11
12
13
# File 'lib/yadecli/model/host.rb', line 11

def zone
  @zone
end

Instance Method Details

#attributesObject



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