Class: Copy::Link
- Includes:
- Operations::All, Operations::Create, Operations::Delete, Operations::Meta, Operations::Show
- Defined in:
- lib/copy/link.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Metadata fields.
-
#children_count ⇒ Object
Metadata fields.
-
#confirmation_required ⇒ Object
Returns the value of attribute confirmation_required.
-
#counts ⇒ Object
Metadata fields.
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#creator_id ⇒ Object
Metadata fields.
-
#date_last_synced ⇒ Object
Metadata fields.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object_count ⇒ Object
Returns the value of attribute object_count.
-
#path ⇒ Object
Metadata fields.
-
#permissions ⇒ Object
Metadata fields.
-
#public ⇒ Object
Metadata fields.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
-
#share ⇒ Object
Metadata fields.
-
#size ⇒ Object
Metadata fields.
-
#status ⇒ Object
Returns the value of attribute status.
-
#stub ⇒ Object
Metadata fields.
-
#syncing ⇒ Object
Metadata fields.
-
#token ⇒ Object
Metadata fields.
-
#type ⇒ Object
Metadata fields.
-
#url ⇒ Object
Returns the value of attribute url.
-
#url_short ⇒ Object
Returns the value of attribute url_short.
Instance Method Summary collapse
- #download_url ⇒ Object
-
#initialize(attributes = {}) ⇒ Link
constructor
A new instance of Link.
Methods included from Operations::Meta
Methods included from Operations::Create
Methods included from Operations::Delete
Methods included from Operations::Show
Methods included from Operations::All
Methods inherited from Base
#errors, #parse_timestamps, #set_attributes, #valid?
Methods included from Operations::Base
Constructor Details
#initialize(attributes = {}) ⇒ Link
Returns a new instance of Link.
18 19 20 21 22 |
# File 'lib/copy/link.rb', line 18 def initialize(attributes = {}) super(attributes) parse_recipients parse_children end |
Instance Attribute Details
#children ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def children @children end |
#children_count ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def children_count @children_count end |
#confirmation_required ⇒ Object
Returns the value of attribute confirmation_required.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def confirmation_required @confirmation_required end |
#counts ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def counts @counts end |
#created_time ⇒ Object
Returns the value of attribute created_time.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def created_time @created_time end |
#creator_id ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def creator_id @creator_id end |
#date_last_synced ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def date_last_synced @date_last_synced end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def name @name end |
#object_count ⇒ Object
Returns the value of attribute object_count.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def object_count @object_count end |
#path ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def path @path end |
#permissions ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def @permissions end |
#public ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def public @public end |
#recipients ⇒ Object
Returns the value of attribute recipients.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def recipients @recipients end |
#share ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def share @share end |
#size ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def size @size end |
#status ⇒ Object
Returns the value of attribute status.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def status @status end |
#stub ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def stub @stub end |
#syncing ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def syncing @syncing end |
#token ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def token @token end |
#type ⇒ Object
Metadata fields
14 15 16 |
# File 'lib/copy/link.rb', line 14 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def url @url end |
#url_short ⇒ Object
Returns the value of attribute url_short.
9 10 11 |
# File 'lib/copy/link.rb', line 9 def url_short @url_short end |
Instance Method Details
#download_url ⇒ Object
24 25 26 27 |
# File 'lib/copy/link.rb', line 24 def download_url return unless url "#{url}?download=1" end |