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,
:sshkey,
:provider,
:cpu,
:ram,
:hdd,
:version,
:display_name,
:password]

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.



64
65
66
# File 'lib/megam/mixins/common_deployable.rb', line 64

def initialize(params)
  set_attributes(params)
end

Instance Attribute Details

#cpuObject (readonly)

Returns the value of attribute cpu.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def cpu
  @cpu
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def display_name
  @display_name
end

#domainObject (readonly)

Returns the value of attribute domain.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def domain
  @domain
end

#hddObject (readonly)

Returns the value of attribute hdd.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def hdd
  @hdd
end

#passwordObject (readonly)

Returns the value of attribute password.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def password
  @password
end

#providerObject (readonly)

Returns the value of attribute provider.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def provider
  @provider
end

#ramObject (readonly)

Returns the value of attribute ram.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def ram
  @ram
end

#sshkeyObject (readonly)

Returns the value of attribute sshkey.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def sshkey
  @sshkey
end

#versionObject (readonly)

Returns the value of attribute version.



48
49
50
# File 'lib/megam/mixins/common_deployable.rb', line 48

def version
  @version
end

Instance Method Details

#attributesObject



60
61
62
# File 'lib/megam/mixins/common_deployable.rb', line 60

def attributes
  ATTRIBUTES
end