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

Returns:

  • (Object)

    the current value of height



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

def height
  @height
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



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

def index
  @index
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



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

def key
  @key
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#orientationObject

Returns the value of attribute orientation

Returns:

  • (Object)

    the current value of orientation



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

def orientation
  @orientation
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



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

def size
  @size
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of 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