Class: Delicious::Bundles::Api
- Inherits:
-
Object
- Object
- Delicious::Bundles::Api
- Includes:
- Methods::All, Methods::Delete, Methods::Find, Methods::Set
- Defined in:
- lib/delicious/bundles/api.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client) ⇒ Api
constructor
A new instance of Api.
Methods included from Methods::Set
Methods included from Methods::Delete
Methods included from Methods::All
Methods included from Methods::Find
Constructor Details
#initialize(client) ⇒ Api
Returns a new instance of Api.
14 15 16 |
# File 'lib/delicious/bundles/api.rb', line 14 def initialize(client) @client = client end |
Class Method Details
.model_attrs(attrs) ⇒ Object
10 11 12 |
# File 'lib/delicious/bundles/api.rb', line 10 def self.model_attrs(attrs) { name: attrs['name'], tags: attrs['tags'].split(' ') } end |