Module: Restulicious::QueryMethods::ClassMethods
- Defined in:
- lib/restulicious/query_methods.rb
Instance Method Summary collapse
- #all(&block) ⇒ Object
- #basic_auth(username, password) ⇒ Object
-
#coordinator ⇒ Object
def update(&bock) coordinator.update(&block) end.
- #first(&block) ⇒ Object
- #from(url) ⇒ Object
- #headers(header_hash) ⇒ Object
- #limit(limit) ⇒ Object
- #offset(offset) ⇒ Object
- #select(fields) ⇒ Object
- #where(params) ⇒ Object
Instance Method Details
#all(&block) ⇒ Object
39 40 41 |
# File 'lib/restulicious/query_methods.rb', line 39 def all(&block) coordinator.all(&block) end |
#basic_auth(username, password) ⇒ Object
7 8 9 |
# File 'lib/restulicious/query_methods.rb', line 7 def basic_auth(username, password) coordinator.basic_auth(username, password) end |
#coordinator ⇒ Object
def update(&bock) coordinator.update(&block) end
51 52 53 |
# File 'lib/restulicious/query_methods.rb', line 51 def coordinator Restulicious::Coordinator.new(self, @api_options) end |
#first(&block) ⇒ Object
35 36 37 |
# File 'lib/restulicious/query_methods.rb', line 35 def first(&block) coordinator.first(&block) end |
#from(url) ⇒ Object
19 20 21 |
# File 'lib/restulicious/query_methods.rb', line 19 def from(url) coordinator.from(url) end |
#headers(header_hash) ⇒ Object
11 12 13 |
# File 'lib/restulicious/query_methods.rb', line 11 def headers(header_hash) coordinator.headers(header_hash) end |
#limit(limit) ⇒ Object
23 24 25 |
# File 'lib/restulicious/query_methods.rb', line 23 def limit(limit) coordinator.limit(limit) end |
#offset(offset) ⇒ Object
27 28 29 |
# File 'lib/restulicious/query_methods.rb', line 27 def offset(offset) coordinator.offset(offset) end |
#select(fields) ⇒ Object
31 32 33 |
# File 'lib/restulicious/query_methods.rb', line 31 def select(fields) coordinator.select(fields) end |
#where(params) ⇒ Object
15 16 17 |
# File 'lib/restulicious/query_methods.rb', line 15 def where(params) coordinator.where(params) end |