Class: MongoScope::MongoRow

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ MongoRow

Returns a new instance of MongoRow.



60
61
62
# File 'lib/mongo_scope.rb', line 60

def initialize(h)
  @h = h
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &b) ⇒ Object



63
64
65
# File 'lib/mongo_scope.rb', line 63

def method_missing(sym,*args,&b)
  h.send(sym,*args,&b)
end

Instance Attribute Details

#hObject

Returns the value of attribute h.



59
60
61
# File 'lib/mongo_scope.rb', line 59

def h
  @h
end