Class: BoxnetApi::File
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#file_count ⇒ Object
readonly
Returns the value of attribute file_count.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#large_thumbnail ⇒ Object
readonly
Returns the value of attribute large_thumbnail.
-
#larger_thumbnail ⇒ Object
readonly
Returns the value of attribute larger_thumbnail.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#preview_thumbnail ⇒ Object
readonly
Returns the value of attribute preview_thumbnail.
-
#sha1 ⇒ Object
readonly
Returns the value of attribute sha1.
-
#shared ⇒ Object
readonly
Returns the value of attribute shared.
-
#shared_link ⇒ Object
readonly
Returns the value of attribute shared_link.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#small_thumbnail ⇒ Object
readonly
Returns the value of attribute small_thumbnail.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Attributes inherited from FileNode
Instance Method Summary collapse
-
#initialize(data) ⇒ File
constructor
A new instance of File.
Methods inherited from FileNode
Constructor Details
#initialize(data) ⇒ File
Returns a new instance of File.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/boxnet.rb', line 85 def initialize(data) @id = data["id"] @name = data["file_name"] @description = data["description"] @file_count = data["file_count"] @sha1 = data["sha1"] @size = data["size"] @tags = data["tags"] @shared = data["shared"] @created = data["created"] @updated = data["updated"] @user_id = data["user_id"] @shared_link = data["shared_link"] @thumbnail = data["thumbnail"] @small_thumbnail = data["small_thumbnail"] @large_thumbnail = data["large_thumbnail"] @larger_thumbnail = data["larger_thumbnail"] @preview_thumbnail = data["preview_thumbnail"] process_node(data) end |
Instance Attribute Details
#created ⇒ Object (readonly)
Returns the value of attribute created.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def created @created end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def description @description end |
#file_count ⇒ Object (readonly)
Returns the value of attribute file_count.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def file_count @file_count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def id @id end |
#large_thumbnail ⇒ Object (readonly)
Returns the value of attribute large_thumbnail.
83 84 85 |
# File 'lib/boxnet.rb', line 83 def large_thumbnail @large_thumbnail end |
#larger_thumbnail ⇒ Object (readonly)
Returns the value of attribute larger_thumbnail.
83 84 85 |
# File 'lib/boxnet.rb', line 83 def larger_thumbnail @larger_thumbnail end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def name @name end |
#preview_thumbnail ⇒ Object (readonly)
Returns the value of attribute preview_thumbnail.
83 84 85 |
# File 'lib/boxnet.rb', line 83 def preview_thumbnail @preview_thumbnail end |
#sha1 ⇒ Object (readonly)
Returns the value of attribute sha1.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def sha1 @sha1 end |
#shared ⇒ Object (readonly)
Returns the value of attribute shared.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def shared @shared end |
#shared_link ⇒ Object (readonly)
Returns the value of attribute shared_link.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def shared_link @shared_link end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
81 82 83 |
# File 'lib/boxnet.rb', line 81 def size @size end |
#small_thumbnail ⇒ Object (readonly)
Returns the value of attribute small_thumbnail.
83 84 85 |
# File 'lib/boxnet.rb', line 83 def small_thumbnail @small_thumbnail end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def @tags end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
83 84 85 |
# File 'lib/boxnet.rb', line 83 def thumbnail @thumbnail end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def updated @updated end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
82 83 84 |
# File 'lib/boxnet.rb', line 82 def user_id @user_id end |