Class: SigepWeb::Models::PostalObject

Inherits:
Object
  • Object
show all
Defined in:
lib/sigep_web/Models/postal_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ PostalObject

Returns a new instance of PostalObject.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/sigep_web/Models/postal_object.rb', line 8

def initialize(options = {})
  @label_number                      = options[:label_number]
  @postage_code_service              = options[:postage_code_service]
  @cubage                            = options[:cubage]
  @weight                            = options[:weight]
  @receiver                          = options[:receiver]
  @dimension_object                  = options[:dimension_object]
  @processing_status                 = options[:processing_status]
  @additional_service_codes          = options[:additional_service_codes]
  @additional_services_declared_value = options[:additional_services_declared_value]
end

Instance Attribute Details

#additional_service_codesObject

Returns the value of attribute additional_service_codes.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def additional_service_codes
  @additional_service_codes
end

#additional_services_declared_valueObject

Returns the value of attribute additional_services_declared_value.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def additional_services_declared_value
  @additional_services_declared_value
end

#cubageObject

Returns the value of attribute cubage.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def cubage
  @cubage
end

#dimension_objectObject

Returns the value of attribute dimension_object.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def dimension_object
  @dimension_object
end

#label_numberObject

Returns the value of attribute label_number.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def label_number
  @label_number
end

#postage_code_serviceObject

Returns the value of attribute postage_code_service.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def postage_code_service
  @postage_code_service
end

#processing_statusObject

Returns the value of attribute processing_status.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def processing_status
  @processing_status
end

#receiverObject

Returns the value of attribute receiver.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def receiver
  @receiver
end

#weightObject

Returns the value of attribute weight.



4
5
6
# File 'lib/sigep_web/Models/postal_object.rb', line 4

def weight
  @weight
end