Class: FetchAPI::Download

Inherits:
Base
  • Object
show all
Defined in:
lib/fetchapi/download.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

basic_auth, #initialize, key

Constructor Details

This class inherits a constructor from FetchAPI::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FetchAPI::Base

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/fetchapi/download.rb', line 3

def attributes
  @attributes
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/fetchapi/download.rb', line 3

def id
  @id
end

Class Method Details

.find(selector, params = {}) ⇒ Object

Find :all downloads or the specified ID



6
7
8
# File 'lib/fetchapi/download.rb', line 6

def self.find(selector, params={})
 super(selector, params={})
end