Class: PkiExpress::PadesSize

Inherits:
Object
  • Object
show all
Defined in:
lib/pki_express/pades_size.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width, height) ⇒ PadesSize

Returns a new instance of PadesSize.



5
6
7
8
# File 'lib/pki_express/pades_size.rb', line 5

def initialize(width, height)
  @width = width
  @height = height
end

Instance Attribute Details

#heightObject

Returns the value of attribute height.



3
4
5
# File 'lib/pki_express/pades_size.rb', line 3

def height
  @height
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/pki_express/pades_size.rb', line 3

def width
  @width
end

Instance Method Details

#to_modelObject



10
11
12
13
14
15
# File 'lib/pki_express/pades_size.rb', line 10

def to_model
  {
      width: @width,
      height: @height,
  }
end