Class: FetchAppAPI::Download

Inherits:
Base
  • Object
show all
Defined in:
lib/fetchapp-api-ruby/download.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

basic_auth, can_connect?, #initialize, key, time

Constructor Details

This class inherits a constructor from FetchAppAPI::Base

Dynamic Method Handling

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

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/fetchapp-api-ruby/download.rb', line 3

def attributes
  @attributes
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/fetchapp-api-ruby/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/fetchapp-api-ruby/download.rb', line 6

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