Class: BoxnetApi::File

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) ⇒ 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

#createdObject (readonly)

Returns the value of attribute created.



82
83
84
# File 'lib/boxnet.rb', line 82

def created
  @created
end

#descriptionObject (readonly)

Returns the value of attribute description.



81
82
83
# File 'lib/boxnet.rb', line 81

def description
  @description
end

#file_countObject (readonly)

Returns the value of attribute file_count.



81
82
83
# File 'lib/boxnet.rb', line 81

def file_count
  @file_count
end

#idObject (readonly)

Returns the value of attribute id.



81
82
83
# File 'lib/boxnet.rb', line 81

def id
  @id
end

#large_thumbnailObject (readonly)

Returns the value of attribute large_thumbnail.



83
84
85
# File 'lib/boxnet.rb', line 83

def large_thumbnail
  @large_thumbnail
end

#larger_thumbnailObject (readonly)

Returns the value of attribute larger_thumbnail.



83
84
85
# File 'lib/boxnet.rb', line 83

def larger_thumbnail
  @larger_thumbnail
end

#nameObject (readonly)

Returns the value of attribute name.



81
82
83
# File 'lib/boxnet.rb', line 81

def name
  @name
end

#preview_thumbnailObject (readonly)

Returns the value of attribute preview_thumbnail.



83
84
85
# File 'lib/boxnet.rb', line 83

def preview_thumbnail
  @preview_thumbnail
end

#sha1Object (readonly)

Returns the value of attribute sha1.



81
82
83
# File 'lib/boxnet.rb', line 81

def sha1
  @sha1
end

#sharedObject (readonly)

Returns the value of attribute shared.



82
83
84
# File 'lib/boxnet.rb', line 82

def shared
  @shared
end

Returns the value of attribute shared_link.



82
83
84
# File 'lib/boxnet.rb', line 82

def shared_link
  @shared_link
end

#sizeObject (readonly)

Returns the value of attribute size.



81
82
83
# File 'lib/boxnet.rb', line 81

def size
  @size
end

#small_thumbnailObject (readonly)

Returns the value of attribute small_thumbnail.



83
84
85
# File 'lib/boxnet.rb', line 83

def small_thumbnail
  @small_thumbnail
end

#tagsObject (readonly)

Returns the value of attribute tags.



82
83
84
# File 'lib/boxnet.rb', line 82

def tags
  @tags
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



83
84
85
# File 'lib/boxnet.rb', line 83

def thumbnail
  @thumbnail
end

#updatedObject (readonly)

Returns the value of attribute updated.



82
83
84
# File 'lib/boxnet.rb', line 82

def updated
  @updated
end

#user_idObject (readonly)

Returns the value of attribute user_id.



82
83
84
# File 'lib/boxnet.rb', line 82

def user_id
  @user_id
end