Class: PnoteClient::Documents::Pnote::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/pnote_client/documents/pnote/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, format, size, raw_data) ⇒ Image

Returns a new instance of Image.



7
8
9
10
11
12
# File 'lib/pnote_client/documents/pnote/image.rb', line 7

def initialize(id, format, size, raw_data)
  @id = id
  @format = format
  @size = size
  @raw_data = raw_data
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



5
6
7
# File 'lib/pnote_client/documents/pnote/image.rb', line 5

def format
  @format
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/pnote_client/documents/pnote/image.rb', line 5

def id
  @id
end

#raw_dataObject (readonly)

Returns the value of attribute raw_data.



5
6
7
# File 'lib/pnote_client/documents/pnote/image.rb', line 5

def raw_data
  @raw_data
end

#sizeObject (readonly)

Returns the value of attribute size.



5
6
7
# File 'lib/pnote_client/documents/pnote/image.rb', line 5

def size
  @size
end