Class: Delicious::Bundles::Api

Inherits:
Object
  • Object
show all
Includes:
Methods::All, Methods::Delete, Methods::Find, Methods::Set
Defined in:
lib/delicious/bundles/api.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Methods::Set

#set

Methods included from Methods::Delete

#delete

Methods included from Methods::All

#all

Methods included from Methods::Find

#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