Class: XboxVideo::Thumbnail

Inherits:
Object
  • Object
show all
Defined in:
lib/xbox_video/thumbnail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ Thumbnail

Returns a new instance of Thumbnail.



5
6
7
8
9
# File 'lib/xbox_video/thumbnail.rb', line 5

def initialize(block)
  @uri = block['uri']
  @file_size = block['fileSize']
  @size = block['thumbnailType']
end

Instance Attribute Details

#file_sizeObject

Returns the value of attribute file_size.



3
4
5
# File 'lib/xbox_video/thumbnail.rb', line 3

def file_size
  @file_size
end

#sizeObject

Returns the value of attribute size.



3
4
5
# File 'lib/xbox_video/thumbnail.rb', line 3

def size
  @size
end

#uriObject

Returns the value of attribute uri.



3
4
5
# File 'lib/xbox_video/thumbnail.rb', line 3

def uri
  @uri
end