Class: GOM::Storage::CouchDB::View::Pusher
- Inherits:
-
Object
- Object
- GOM::Storage::CouchDB::View::Pusher
- Defined in:
- lib/gom/storage/couchdb/view/pusher.rb
Overview
A helper to push design documents to the CouchDB server.
Instance Attribute Summary collapse
-
#design ⇒ Object
readonly
Returns the value of attribute design.
Instance Method Summary collapse
-
#initialize(database, view_hash) ⇒ Pusher
constructor
A new instance of Pusher.
- #perform ⇒ Object
Constructor Details
#initialize(database, view_hash) ⇒ Pusher
Returns a new instance of Pusher.
7 8 9 |
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 7 def initialize(database, view_hash) @database, @view_hash = database, view_hash end |
Instance Attribute Details
#design ⇒ Object (readonly)
Returns the value of attribute design.
5 6 7 |
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 5 def design @design end |
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 |
# File 'lib/gom/storage/couchdb/view/pusher.rb', line 11 def perform initialize_design add_views push_design end |