Class: Megam::Mixins::InputGroupData

Inherits:
Object
  • Object
show all
Includes:
Nilavu::MegamAttributes
Defined in:
lib/megam/mixins/common_deployable.rb

Constant Summary collapse

ATTRIBUTES =
[
    :domain,
    :keypairoption,
    :root_password,
    :sshkey,
    :provider,
    :cpu,
    :ram,
    :hdd,
    :version,
    :display_name,
    :password,
    :region,
    :resource,
    :storage_hddtype,
    :ipv4private,
    :ipv4public,
    :ipv6private,
:ipv6public]

Constants included from Nilavu::MegamAttributes

Nilavu::MegamAttributes::KEY, Nilavu::MegamAttributes::VALUE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Nilavu::MegamAttributes

#set_attributes, #to_hash

Constructor Details

#initialize(params) ⇒ InputGroupData

Returns a new instance of InputGroupData.



86
87
88
# File 'lib/megam/mixins/common_deployable.rb', line 86

def initialize(params)
    set_attributes(params)
end

Instance Attribute Details

#cpuObject (readonly)

Returns the value of attribute cpu.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def cpu
  @cpu
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def display_name
  @display_name
end

#domainObject (readonly)

Returns the value of attribute domain.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def domain
  @domain
end

#hddObject (readonly)

Returns the value of attribute hdd.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def hdd
  @hdd
end

#ipv4privateObject (readonly)

Returns the value of attribute ipv4private.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ipv4private
  @ipv4private
end

#ipv4publicObject (readonly)

Returns the value of attribute ipv4public.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ipv4public
  @ipv4public
end

#ipv6privateObject (readonly)

Returns the value of attribute ipv6private.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ipv6private
  @ipv6private
end

#ipv6publicObject (readonly)

Returns the value of attribute ipv6public.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ipv6public
  @ipv6public
end

#keypairoptionObject (readonly)

Returns the value of attribute keypairoption.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def keypairoption
  @keypairoption
end

#passwordObject (readonly)

Returns the value of attribute password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def password
  @password
end

#providerObject (readonly)

Returns the value of attribute provider.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def provider
  @provider
end

#ramObject (readonly)

Returns the value of attribute ram.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def ram
  @ram
end

#regionObject (readonly)

Returns the value of attribute region.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def region
  @region
end

#resourceObject (readonly)

Returns the value of attribute resource.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def resource
  @resource
end

#root_passwordObject (readonly)

Returns the value of attribute root_password.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def root_password
  @root_password
end

#sshkeyObject (readonly)

Returns the value of attribute sshkey.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def sshkey
  @sshkey
end

#storage_hddtypeObject (readonly)

Returns the value of attribute storage_hddtype.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def storage_hddtype
  @storage_hddtype
end

#versionObject (readonly)

Returns the value of attribute version.



58
59
60
# File 'lib/megam/mixins/common_deployable.rb', line 58

def version
  @version
end

Instance Method Details

#attributesObject



82
83
84
# File 'lib/megam/mixins/common_deployable.rb', line 82

def attributes
    ATTRIBUTES
end