Class: PnoteClient::Documents::Pnote::Image
- Inherits:
-
Object
- Object
- PnoteClient::Documents::Pnote::Image
- Defined in:
- lib/pnote_client/documents/pnote/image.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#raw_data ⇒ Object
readonly
Returns the value of attribute raw_data.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(id, format, size, raw_data) ⇒ Image
constructor
A new instance of Image.
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
#format ⇒ Object (readonly)
Returns the value of attribute format.
5 6 7 |
# File 'lib/pnote_client/documents/pnote/image.rb', line 5 def format @format end |
#id ⇒ Object (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_data ⇒ Object (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 |
#size ⇒ Object (readonly)
Returns the value of attribute size.
5 6 7 |
# File 'lib/pnote_client/documents/pnote/image.rb', line 5 def size @size end |