Class: Hyperb::Func
Overview
func object
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#container_size ⇒ Object
Returns the value of attribute container_size.
-
#created ⇒ Object
Returns the value of attribute created.
-
#host_config ⇒ Object
Returns the value of attribute host_config.
-
#name ⇒ Object
Returns the value of attribute name.
-
#networking_config ⇒ Object
Returns the value of attribute networking_config.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Func
constructor
A new instance of Func.
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
#config ⇒ Object
Returns the value of attribute config.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def config @config end |
#container_size ⇒ Object
Returns the value of attribute container_size.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def container_size @container_size end |
#created ⇒ Object
Returns the value of attribute created.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def created @created end |
#host_config ⇒ Object
Returns the value of attribute host_config.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def host_config @host_config end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def name @name end |
#networking_config ⇒ Object
Returns the value of attribute networking_config.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def networking_config @networking_config end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def timeout @timeout end |
#uuid ⇒ Object
Returns the value of attribute uuid.
5 6 7 |
# File 'lib/hyperb/funcs/func.rb', line 5 def uuid @uuid end |