Class: PkiExpress::PadesSize
- Inherits:
-
Object
- Object
- PkiExpress::PadesSize
- Defined in:
- lib/pki_express/pades_size.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ PadesSize
constructor
A new instance of PadesSize.
- #to_model ⇒ Object
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
#height ⇒ Object
Returns the value of attribute height.
3 4 5 |
# File 'lib/pki_express/pades_size.rb', line 3 def height @height end |
#width ⇒ Object
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_model ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pki_express/pades_size.rb', line 10 def to_model { width: @width, height: @height, } end |