Class: Kippt::Saves
- Inherits:
-
Object
- Object
- Kippt::Saves
- Defined in:
- lib/kippt/saves.rb
Instance Attribute Summary collapse
-
#clip ⇒ Object
readonly
Returns the value of attribute clip.
Instance Method Summary collapse
- #collection_class ⇒ Object
- #fetch(options = {}) ⇒ Object (also: #all)
-
#initialize(client, clip) ⇒ Saves
constructor
A new instance of Saves.
Constructor Details
#initialize(client, clip) ⇒ Saves
Returns a new instance of Saves.
6 7 8 9 |
# File 'lib/kippt/saves.rb', line 6 def initialize(client, clip) @client = client @clip = clip end |
Instance Attribute Details
#clip ⇒ Object (readonly)
Returns the value of attribute clip.
4 5 6 |
# File 'lib/kippt/saves.rb', line 4 def clip @clip end |
Instance Method Details
#collection_class ⇒ Object
11 12 13 |
# File 'lib/kippt/saves.rb', line 11 def collection_class Kippt::UserCollection end |
#fetch(options = {}) ⇒ Object Also known as: all
15 16 17 |
# File 'lib/kippt/saves.rb', line 15 def fetch( = {}) collection_class.new({"objects" => @clip.saves_data}, client) end |