Class: OoxmlParser::Image

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImage

Returns a new instance of Image.



6
7
8
9
10
11
12
13
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 6

def initialize
  @path = nil
  @start_x = 0
  @start_y = 0
  @end_x = nil
  @end_y = nil
  @wrap_text = 'In text'
end

Instance Attribute Details

#end_xObject

Returns the value of attribute end_x.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def end_x
  @end_x
end

#end_yObject

Returns the value of attribute end_y.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def end_y
  @end_y
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def path
  @path
end

#start_xObject

Returns the value of attribute start_x.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def start_x
  @start_x
end

#start_yObject

Returns the value of attribute start_y.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def start_y
  @start_y
end

#wrap_textObject

Returns the value of attribute wrap_text.



4
5
6
# File 'lib/ooxml_parser/docx_parser/docx_data/document_structure/image.rb', line 4

def wrap_text
  @wrap_text
end