Class: Zeit::Resources::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/zeit/resources/base.rb

Direct Known Subclasses

Author, Client, Content, Department, Keyword, Product, Series

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @connection = connection

  @limit = options[:limit] || 10
  @fields = []
end

Instance Attribute Details

#fieldsObject

Returns the value of attribute fields.



5
6
7
# File 'lib/zeit/resources/base.rb', line 5

def fields
  @fields
end

#limitObject

Returns the value of attribute limit.



6
7
8
# File 'lib/zeit/resources/base.rb', line 6

def limit
  @limit
end

#offsetObject

Returns the value of attribute offset.



7
8
9
# File 'lib/zeit/resources/base.rb', line 7

def offset
  @offset
end

#queryObject

Returns the value of attribute query.



4
5
6
# File 'lib/zeit/resources/base.rb', line 4

def query
  @query
end