Class: BoxnetApi::Folder

Inherits:
FileNode show all
Defined in:
lib/boxnet.rb

Instance Attribute Summary collapse

Attributes inherited from FileNode

#files

Instance Method Summary collapse

Methods inherited from FileNode

#process_node

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

#createdObject (readonly)

Returns the value of attribute created.



110
111
112
# File 'lib/boxnet.rb', line 110

def created
  @created
end

#descriptionObject (readonly)

Returns the value of attribute description.



109
110
111
# File 'lib/boxnet.rb', line 109

def description
  @description
end

#file_countObject (readonly)

Returns the value of attribute file_count.



109
110
111
# File 'lib/boxnet.rb', line 109

def file_count
  @file_count
end

#idObject (readonly)

Returns the value of attribute id.



109
110
111
# File 'lib/boxnet.rb', line 109

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



109
110
111
# File 'lib/boxnet.rb', line 109

def name
  @name
end

#permissionObject (readonly)

Returns the value of attribute permission.



110
111
112
# File 'lib/boxnet.rb', line 110

def permission
  @permission
end

#sharedObject (readonly)

Returns the value of attribute shared.



110
111
112
# File 'lib/boxnet.rb', line 110

def shared
  @shared
end

Returns the value of attribute shared_link.



110
111
112
# File 'lib/boxnet.rb', line 110

def shared_link
  @shared_link
end

#sizeObject (readonly)

Returns the value of attribute size.



110
111
112
# File 'lib/boxnet.rb', line 110

def size
  @size
end

#updatedObject (readonly)

Returns the value of attribute updated.



110
111
112
# File 'lib/boxnet.rb', line 110

def updated
  @updated
end

#user_idObject (readonly)

Returns the value of attribute user_id.



109
110
111
# File 'lib/boxnet.rb', line 109

def user_id
  @user_id
end