Class: PnoteClient::Documents::Hml::Image
- Inherits:
-
Object
- Object
- PnoteClient::Documents::Hml::Image
- Defined in:
- lib/pnote_client/documents/hml/image.rb
Instance Attribute Summary collapse
-
#bin_item_id ⇒ Object
readonly
Returns the value of attribute bin_item_id.
Class Method Summary collapse
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(bin_item_id) ⇒ Image
constructor
A new instance of Image.
- #textable? ⇒ Boolean
Constructor Details
#initialize(bin_item_id) ⇒ Image
Returns a new instance of Image.
14 15 16 |
# File 'lib/pnote_client/documents/hml/image.rb', line 14 def initialize(bin_item_id) @bin_item_id = bin_item_id end |
Instance Attribute Details
#bin_item_id ⇒ Object (readonly)
Returns the value of attribute bin_item_id.
12 13 14 |
# File 'lib/pnote_client/documents/hml/image.rb', line 12 def bin_item_id @bin_item_id end |
Class Method Details
.from_tag(image_tag) ⇒ Object
6 7 8 9 10 |
# File 'lib/pnote_client/documents/hml/image.rb', line 6 def self.from_tag(image_tag) bin_item_id = image_tag['BinItem'] return self.new(bin_item_id) end |
Instance Method Details
#content ⇒ Object
18 19 20 |
# File 'lib/pnote_client/documents/hml/image.rb', line 18 def content return "\n\n" end |
#textable? ⇒ Boolean
22 23 24 |
# File 'lib/pnote_client/documents/hml/image.rb', line 22 def textable? return true end |