Class: BoxnetApi::Folder
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.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#permission ⇒ Object
readonly
Returns the value of attribute permission.
-
#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.
-
#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) ⇒ Folder
constructor
A new instance of Folder.
Methods inherited from FileNode
Constructor Details
#initialize(data) ⇒ Folder
Returns a new instance of Folder.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/boxnet.rb', line 112 def initialize(data) @id = data["id"] @name = data["name"] @description = data["description"] @file_count = data["file_count"] @user_id = data["user_id"] @shared = data["shared"] @shared_link = data["shared_link"] @permission = data["permission"] @size = data["size"] @created = data["created"] @updated = data["updated"] process_node(data) end |
Instance Attribute Details
#created ⇒ Object (readonly)
Returns the value of attribute created.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def created @created end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
109 110 111 |
# File 'lib/boxnet.rb', line 109 def description @description end |
#file_count ⇒ Object (readonly)
Returns the value of attribute file_count.
109 110 111 |
# File 'lib/boxnet.rb', line 109 def file_count @file_count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
109 110 111 |
# File 'lib/boxnet.rb', line 109 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
109 110 111 |
# File 'lib/boxnet.rb', line 109 def name @name end |
#permission ⇒ Object (readonly)
Returns the value of attribute permission.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def @permission end |
#shared ⇒ Object (readonly)
Returns the value of attribute shared.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def shared @shared end |
#shared_link ⇒ Object (readonly)
Returns the value of attribute shared_link.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def shared_link @shared_link end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def size @size end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
110 111 112 |
# File 'lib/boxnet.rb', line 110 def updated @updated end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
109 110 111 |
# File 'lib/boxnet.rb', line 109 def user_id @user_id end |