Class: Zeit::Resources::Base
- Inherits:
-
Object
- Object
- Zeit::Resources::Base
- Defined in:
- lib/zeit/resources/base.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(connection, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(connection, options = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 |
# File 'lib/zeit/resources/base.rb', line 9 def initialize(connection, = {}) @connection = connection @limit = [:limit] || 10 @fields = [] end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
5 6 7 |
# File 'lib/zeit/resources/base.rb', line 5 def fields @fields end |
#limit ⇒ Object
Returns the value of attribute limit.
6 7 8 |
# File 'lib/zeit/resources/base.rb', line 6 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
7 8 9 |
# File 'lib/zeit/resources/base.rb', line 7 def offset @offset end |
#query ⇒ Object
Returns the value of attribute query.
4 5 6 |
# File 'lib/zeit/resources/base.rb', line 4 def query @query end |