Class: BLM::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/blm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



53
54
55
# File 'lib/blm.rb', line 53

def attributes
  @attributes
end