Class: Kippt::Clips
- Inherits:
-
Object
- Object
- Kippt::Clips
- Includes:
- CollectionResource
- Defined in:
- lib/kippt/clips.rb
Overview
Generic clip proxy. Used to wrap endpoints that return clips as JSON.
Instance Attribute Summary collapse
-
#base_uri ⇒ Object
readonly
Returns the value of attribute base_uri.
Class Method Summary collapse
Instance Method Summary collapse
- #collection_class ⇒ Object
-
#initialize(client, base_uri) ⇒ Clips
constructor
A new instance of Clips.
- #object_class ⇒ Object
Methods included from CollectionResource
#build, #create, #destroy_resource, #save_resource
Methods included from ReadCollectionResource
Constructor Details
#initialize(client, base_uri) ⇒ Clips
Returns a new instance of Clips.
10 11 12 13 |
# File 'lib/kippt/clips.rb', line 10 def initialize(client, base_uri) @client = client @base_uri = base_uri end |
Instance Attribute Details
#base_uri ⇒ Object (readonly)
Returns the value of attribute base_uri.
8 9 10 |
# File 'lib/kippt/clips.rb', line 8 def base_uri @base_uri end |
Class Method Details
.valid_filter_parameters ⇒ Object
15 16 17 |
# File 'lib/kippt/clips.rb', line 15 def self.valid_filter_parameters [:limit, :offset, :is_read_later, :is_starred, :url, :since, :include_data] end |
Instance Method Details
#collection_class ⇒ Object
23 24 25 |
# File 'lib/kippt/clips.rb', line 23 def collection_class Kippt::ClipCollection end |