class PnoteClient::Documents::Hml::Image

Attributes

bin_item_id[R]

Public Class Methods

from_tag(image_tag) click to toggle source
# 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
new(bin_item_id) click to toggle source
# File lib/pnote_client/documents/hml/image.rb, line 14
def initialize(bin_item_id)
  @bin_item_id = bin_item_id
end

Public Instance Methods

content() click to toggle source
# File lib/pnote_client/documents/hml/image.rb, line 18
def content
  return "\n![image](#{@bin_item_id})\n"
end
textable?() click to toggle source
# File lib/pnote_client/documents/hml/image.rb, line 22
def textable?
  return true
end