Class: Postmen::Base::CreateLabel
- Inherits:
-
Object
- Object
- Postmen::Base::CreateLabel
- Includes:
- Common
- Defined in:
- lib/postmen/base/create_label.rb
Instance Attribute Summary collapse
-
#paper_size ⇒ Object
readonly
Returns the value of attribute paper_size.
-
#return_shipment ⇒ Object
readonly
Returns the value of attribute return_shipment.
-
#service_type ⇒ Object
readonly
Returns the value of attribute service_type.
Instance Method Summary collapse
-
#initialize(options) ⇒ CreateLabel
constructor
A new instance of CreateLabel.
Methods included from Common
Constructor Details
#initialize(options) ⇒ CreateLabel
Returns a new instance of CreateLabel.
10 11 12 13 14 |
# File 'lib/postmen/base/create_label.rb', line 10 def initialize() @return_shipment = [:return_shipment] @paper_size = [:paper_size] || 'default' @service_type = [:service_type] end |
Instance Attribute Details
#paper_size ⇒ Object (readonly)
Returns the value of attribute paper_size.
6 7 8 |
# File 'lib/postmen/base/create_label.rb', line 6 def paper_size @paper_size end |
#return_shipment ⇒ Object (readonly)
Returns the value of attribute return_shipment.
6 7 8 |
# File 'lib/postmen/base/create_label.rb', line 6 def return_shipment @return_shipment end |
#service_type ⇒ Object (readonly)
Returns the value of attribute service_type.
6 7 8 |
# File 'lib/postmen/base/create_label.rb', line 6 def service_type @service_type end |