Class: CHECKING::YOU::OUT::Species

Inherits:
Struct
  • Object
show all
Defined in:
lib/checking-you-out/inner_spirit.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



68
69
70
# File 'lib/checking-you-out/inner_spirit.rb', line 68

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



68
69
70
# File 'lib/checking-you-out/inner_spirit.rb', line 68

def value
  @value
end

Class Method Details

.from_string(param_string) ⇒ Object



69
70
71
# File 'lib/checking-you-out/inner_spirit.rb', line 69

def self.from_string(param_string)
  return self.new(*param_string.split(-?=))
end