Class: BLM::Row
- Inherits:
-
Object
- Object
- BLM::Row
- Defined in:
- lib/blm.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Row
constructor
A new instance of Row.
- #method_missing(method, *arguments, &block) ⇒ Object
Constructor Details
#initialize(hash) ⇒ Row
Returns a new instance of Row.
55 56 57 |
# File 'lib/blm.rb', line 55 def initialize(hash) @attributes = hash end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *arguments, &block) ⇒ Object
59 60 61 |
# File 'lib/blm.rb', line 59 def method_missing(method, *arguments, &block) return @attributes[method] unless @attributes[method].nil? end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
53 54 55 |
# File 'lib/blm.rb', line 53 def attributes @attributes end |