class LightweightAttributes::AttributeSet
Attributes
attributes[R]
Public Class Methods
new(attributes)
click to toggle source
# File lib/lightweight_attributes/attribute_set.rb, line 9 def initialize(attributes) @attributes = attributes end
Public Instance Methods
fetch_value(name)
click to toggle source
# File lib/lightweight_attributes/attribute_set.rb, line 13 def fetch_value(name) self[name] end
to_hash()
click to toggle source
# File lib/lightweight_attributes/attribute_set.rb, line 17 def to_hash @attributes end