Class: Dropio::Drop
Instance Attribute Summary collapse
-
#admin_password ⇒ Object
Returns the value of attribute admin_password.
-
#admin_token ⇒ Object
Returns the value of attribute admin_token.
-
#conference ⇒ Object
Returns the value of attribute conference.
-
#current_bytes ⇒ Object
Returns the value of attribute current_bytes.
-
#email ⇒ Object
Returns the value of attribute email.
-
#expiration_length ⇒ Object
Returns the value of attribute expiration_length.
-
#fax ⇒ Object
Returns the value of attribute fax.
-
#guest_token ⇒ Object
Returns the value of attribute guest_token.
-
#guests_can_add ⇒ Object
Returns the value of attribute guests_can_add.
-
#guests_can_comment ⇒ Object
Returns the value of attribute guests_can_comment.
-
#guests_can_delete ⇒ Object
Returns the value of attribute guests_can_delete.
-
#hidden_upload_url ⇒ Object
Returns the value of attribute hidden_upload_url.
-
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#premium_code ⇒ Object
Returns the value of attribute premium_code.
-
#rss ⇒ Object
Returns the value of attribute rss.
-
#upload_url ⇒ Object
Returns the value of attribute upload_url.
-
#voicemail ⇒ Object
Returns the value of attribute voicemail.
Class Method Summary collapse
-
.create(attributes = {}) ⇒ Object
Creates a drop with an
attributes
hash. -
.find(name, token = nil) ⇒ Object
Finds a drop with
name
and optional authorizationtoken
.
Instance Method Summary collapse
-
#add_file(file_path) ⇒ Object
Adds a file to the Drop given the
file_path
. -
#assets(page = 1) ⇒ Object
Gets a list of assets associated with the Drop.
-
#create_link(url, title = nil, description = nil) ⇒ Object
Creates a link with a
url
,title
, anddescription
. -
#create_note(title, contents) ⇒ Object
Creates a note with a
title
andcontents
. -
#destroy ⇒ Object
Deletes the Drop from the system including all associated assets.
-
#generate_url ⇒ Object
Generates an authenticated URL that will bypass any login action.
-
#save ⇒ Object
Saves the Drop.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Dropio::Resource
Instance Attribute Details
#admin_password ⇒ Object
Returns the value of attribute admin_password.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def admin_password @admin_password end |
#admin_token ⇒ Object
Returns the value of attribute admin_token.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def admin_token @admin_token end |
#conference ⇒ Object
Returns the value of attribute conference.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def conference @conference end |
#current_bytes ⇒ Object
Returns the value of attribute current_bytes.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def current_bytes @current_bytes end |
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def email @email end |
#expiration_length ⇒ Object
Returns the value of attribute expiration_length.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def expiration_length @expiration_length end |
#fax ⇒ Object
Returns the value of attribute fax.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def fax @fax end |
#guest_token ⇒ Object
Returns the value of attribute guest_token.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def guest_token @guest_token end |
#guests_can_add ⇒ Object
Returns the value of attribute guests_can_add.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def guests_can_add @guests_can_add end |
#guests_can_comment ⇒ Object
Returns the value of attribute guests_can_comment.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def guests_can_comment @guests_can_comment end |
#guests_can_delete ⇒ Object
Returns the value of attribute guests_can_delete.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def guests_can_delete @guests_can_delete end |
#hidden_upload_url ⇒ Object
Returns the value of attribute hidden_upload_url.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def hidden_upload_url @hidden_upload_url end |
#max_bytes ⇒ Object
Returns the value of attribute max_bytes.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def max_bytes @max_bytes end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def password @password end |
#premium_code ⇒ Object
Returns the value of attribute premium_code.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def premium_code @premium_code end |
#rss ⇒ Object
Returns the value of attribute rss.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def rss @rss end |
#upload_url ⇒ Object
Returns the value of attribute upload_url.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def upload_url @upload_url end |
#voicemail ⇒ Object
Returns the value of attribute voicemail.
3 4 5 |
# File 'lib/dropio/drop.rb', line 3 def voicemail @voicemail end |
Class Method Details
.create(attributes = {}) ⇒ Object
Creates a drop with an attributes
hash. Valid attributes: name (string), guests_can_comment (boolean), guests_can_add (boolean), guests_can_delete (boolean), expiration_length (string), password (string), admin_password (string), and premium_code (string) Descriptions can be found here: groups.google.com/group/dropio-api/web/full-api-documentation
20 21 22 |
# File 'lib/dropio/drop.rb', line 20 def self.create(attributes = {}) Dropio::Client.instance.create_drop(attributes) end |
Instance Method Details
#add_file(file_path) ⇒ Object
Adds a file to the Drop given the file_path
.
35 36 37 |
# File 'lib/dropio/drop.rb', line 35 def add_file(file_path) Dropio::Client.instance.add_file(self, file_path) end |
#assets(page = 1) ⇒ Object
Gets a list of assets associated with the Drop. Paginated at
8 9 10 |
# File 'lib/dropio/drop.rb', line 8 def assets(page = 1) Dropio::Client.instance.find_assets(self, page) end |
#create_link(url, title = nil, description = nil) ⇒ Object
Creates a link with a url
, title
, and description
.
45 46 47 |
# File 'lib/dropio/drop.rb', line 45 def create_link(url, title = nil, description = nil) Dropio::Client.instance.create_link(self, url, title, description) end |
#create_note(title, contents) ⇒ Object
Creates a note with a title
and contents
40 41 42 |
# File 'lib/dropio/drop.rb', line 40 def create_note(title,contents) Dropio::Client.instance.create_note(self, title, contents) end |
#destroy ⇒ Object
Deletes the Drop from the system including all associated assets.
30 31 32 |
# File 'lib/dropio/drop.rb', line 30 def destroy Dropio::Client.instance.destroy_drop(self) end |