Class: CouchFoo::View
- Inherits:
-
Object
- Object
- CouchFoo::View
- Defined in:
- lib/couch_foo/base.rb
Overview
Simple class encapsulating a view
Instance Attribute Summary collapse
-
#map_function ⇒ Object
Returns the value of attribute map_function.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#reduce_function ⇒ Object
Returns the value of attribute reduce_function.
Instance Method Summary collapse
-
#initialize(name, map_function, reduce_function, options, *args) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(name, map_function, reduce_function, options, *args) ⇒ View
Returns a new instance of View.
54 55 56 57 58 59 |
# File 'lib/couch_foo/base.rb', line 54 def initialize(name, map_function, reduce_function, , *args) self.name = name self.map_function = map_function self.reduce_function = reduce_function self. = end |
Instance Attribute Details
#map_function ⇒ Object
Returns the value of attribute map_function.
53 54 55 |
# File 'lib/couch_foo/base.rb', line 53 def map_function @map_function end |
#name ⇒ Object
Returns the value of attribute name.
53 54 55 |
# File 'lib/couch_foo/base.rb', line 53 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
53 54 55 |
# File 'lib/couch_foo/base.rb', line 53 def @options end |
#reduce_function ⇒ Object
Returns the value of attribute reduce_function.
53 54 55 |
# File 'lib/couch_foo/base.rb', line 53 def reduce_function @reduce_function end |