Module: Delicious::Bundles::Methods::All

Extended by:
ActiveSupport::Concern
Included in:
Api
Defined in:
lib/delicious/bundles/methods/all.rb

Instance Method Summary collapse

Instance Method Details

#allArray<Bundle>

Get all user bundles

Returns:

  • (Array<Bundle>)

    List of bundles



13
14
15
16
17
18
# File 'lib/delicious/bundles/methods/all.rb', line 13

def all
  response = @client.connection.get '/v1/tags/bundles/all'
  response.body['bundles']['bundle'].map do |attrs|
    Bundle.build_persisted @client, self.class.model_attrs(attrs)
  end
end