Class: ApphoshiesClient::FileUpload
- Inherits:
-
Base
- Object
- ActiveResource::Base
- Base
- ApphoshiesClient::FileUpload
show all
- Defined in:
- lib/apphoshies_client/file_upload.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
all, find_by_datasource, find_one, get, reload_http_headers
Class Method Details
.find_by_application_client_key(application_client_key, options = {}) ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/apphoshies_client/file_upload.rb', line 11
def self.find_by_application_client_key(application_client_key, options = {})
default_options = {:limit => 100, :application_client_key => application_client_key}
unless application_client_key.blank?
get(:all, default_options.merge(options))
else
raise ApphoshiesClient::MissingApplicationClientKeyException
end
end
|
Instance Method Details
#url ⇒ Object
7
8
9
|
# File 'lib/apphoshies_client/file_upload.rb', line 7
def url
"#{@@apphoshies_configuration.site}/file_uploads/#{self.id}"
end
|