Class: Evertils::Common::ENML

Inherits:
Object
  • Object
show all
Defined in:
lib/evertils/common/enml.rb

Overview

Since:

  • 0.3.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file = nil) ⇒ ENML

Returns a new instance of ENML.

Since:

  • 0.3.0



6
7
8
9
10
11
12
13
# File 'lib/evertils/common/enml.rb', line 6

def initialize(file = nil)
  @file = file
  @element = enml_element

  if !@element.nil?
    @embeddable_element = "<hr/>Attachment with hash #{@element.data.bodyHash}<br /><en-media type=\"#{@element.mime}\" hash=\"#{@element.data.bodyHash}\" /><br /><br />"
  end
end

Instance Attribute Details

#elementObject (readonly)

Since:

  • 0.3.0



4
5
6
# File 'lib/evertils/common/enml.rb', line 4

def element
  @element
end

#embeddable_elementObject (readonly)

Since:

  • 0.3.0



4
5
6
# File 'lib/evertils/common/enml.rb', line 4

def embeddable_element
  @embeddable_element
end