Class: Postmen::Base::CreateLabel

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/postmen/base/create_label.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

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(options)
  @return_shipment = options[:return_shipment]
  @paper_size = options[:paper_size] || 'default'
  @service_type = options[:service_type]
end

Instance Attribute Details

#paper_sizeObject (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_shipmentObject (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_typeObject (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