Class: TECSCDE::TECSModel::PaperSpec

Inherits:
Struct
  • Object
show all
Defined in:
lib/tecscde/tecs_model.rb

Overview

Paper Size w/o margin (10 mm each side)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def height
  @height
end

#indexObject

Returns the value of attribute index



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def index
  @index
end

#keyObject

Returns the value of attribute key



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def key
  @key
end

#nameObject

Returns the value of attribute name



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def name
  @name
end

#orientationObject

Returns the value of attribute orientation



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def orientation
  @orientation
end

#sizeObject

Returns the value of attribute size



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def size
  @size
end

#widthObject

Returns the value of attribute width



141
142
143
# File 'lib/tecscde/tecs_model.rb', line 141

def width
  @width
end

Instance Method Details

#cairo_paper_classObject



142
143
144
# File 'lib/tecscde/tecs_model.rb', line 142

def cairo_paper_class
  Cairo::Paper.const_get(@name)
end