Class: SmoothOperator::Attributes::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/smooth_operator/attributes/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, value, type, unknown_hash_class) ⇒ Base



10
11
12
# File 'lib/smooth_operator/attributes/base.rb', line 10

def initialize(name, value, type, unknown_hash_class)
  @value = TypeConverter.cast_to_type(name, value, type, self.class, unknown_hash_class)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



8
9
10
# File 'lib/smooth_operator/attributes/base.rb', line 8

def value
  @value
end