Class: Hyperb::Func

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/hyperb/funcs/func.rb

Overview

func object

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

#camelize, #check_arguments, #downcase_symbolize, #prepare_json, #underscore

Constructor Details

#initialize(attrs = {}) ⇒ Func

Returns a new instance of Func.



8
9
10
11
12
13
# File 'lib/hyperb/funcs/func.rb', line 8

def initialize(attrs = {})
  attrs.each do |k, v|
    v = downcase_symbolize(v) if v.is_a?(Hash)
    instance_variable_set("@#{underscore(k)}", v)
  end
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def config
  @config
end

#container_sizeObject

Returns the value of attribute container_size.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def container_size
  @container_size
end

#createdObject

Returns the value of attribute created.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def created
  @created
end

#host_configObject

Returns the value of attribute host_config.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def host_config
  @host_config
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def name
  @name
end

#networking_configObject

Returns the value of attribute networking_config.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def networking_config
  @networking_config
end

#timeoutObject

Returns the value of attribute timeout.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def timeout
  @timeout
end

#uuidObject

Returns the value of attribute uuid.



5
6
7
# File 'lib/hyperb/funcs/func.rb', line 5

def uuid
  @uuid
end