Class: Kippt::Lists

Inherits:
Object
  • Object
show all
Includes:
CollectionResource
Defined in:
lib/kippt/lists.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CollectionResource

#build, #create, #destroy_resource, #save_resource

Methods included from ReadCollectionResource

#[], #fetch

Constructor Details

#initialize(client) ⇒ Lists

Returns a new instance of Lists.



7
8
9
# File 'lib/kippt/lists.rb', line 7

def initialize(client)
  @client = client
end

Class Method Details

.valid_filter_parametersObject



11
12
13
# File 'lib/kippt/lists.rb', line 11

def self.valid_filter_parameters
  [:limit, :offset]
end

Instance Method Details

#base_uriObject



23
24
25
# File 'lib/kippt/lists.rb', line 23

def base_uri
  "lists"
end

#collection_classObject



19
20
21
# File 'lib/kippt/lists.rb', line 19

def collection_class
  Kippt::ListCollection
end

#object_classObject



15
16
17
# File 'lib/kippt/lists.rb', line 15

def object_class
  Kippt::List
end