Class: CorreiosSigep::Models::Collect
- Inherits:
-
Object
- Object
- CorreiosSigep::Models::Collect
- Defined in:
- lib/correios_sigep/models/collect.rb
Instance Attribute Summary collapse
-
#aditional_service ⇒ Object
Returns the value of attribute aditional_service.
-
#ag ⇒ Object
Returns the value of attribute ag.
-
#ar ⇒ Object
Returns the value of attribute ar.
-
#card ⇒ Object
Returns the value of attribute card.
-
#checklist ⇒ Object
Returns the value of attribute checklist.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#declared_value ⇒ Object
Returns the value of attribute declared_value.
-
#description ⇒ Object
Returns the value of attribute description.
-
#number ⇒ Object
Returns the value of attribute number.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#product ⇒ Object
Returns the value of attribute product.
-
#product_params ⇒ Object
Returns the value of attribute product_params.
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#sender_params ⇒ Object
Returns the value of attribute sender_params.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Collect
constructor
A new instance of Collect.
Constructor Details
#initialize(options = {}) ⇒ Collect
Returns a new instance of Collect.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/correios_sigep/models/collect.rb', line 14 def initialize( = {}) @aditional_service = [:aditional_service] @ag = [:ag] @ar = [:ar] @card = [:card] @checklist = [:checklist] @client_id = [:client_id] @declared_value = [:declared_value] @description = [:description] @number = [:number] @type = [:type] @product = [:product] || Product.new(.fetch(:product_params, {})) @sender = [:sender] || Sender.new(.fetch(:sender_params, {})) @objects = .fetch(:objects, []) end |
Instance Attribute Details
#aditional_service ⇒ Object
Returns the value of attribute aditional_service.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def aditional_service @aditional_service end |
#ag ⇒ Object
Returns the value of attribute ag.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def ag @ag end |
#ar ⇒ Object
Returns the value of attribute ar.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def ar @ar end |
#card ⇒ Object
Returns the value of attribute card.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def card @card end |
#checklist ⇒ Object
Returns the value of attribute checklist.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def checklist @checklist end |
#client_id ⇒ Object
Returns the value of attribute client_id.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def client_id @client_id end |
#declared_value ⇒ Object
Returns the value of attribute declared_value.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def declared_value @declared_value end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def description @description end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def number @number end |
#objects ⇒ Object
Returns the value of attribute objects.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def objects @objects end |
#product ⇒ Object
Returns the value of attribute product.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def product @product end |
#product_params ⇒ Object
Returns the value of attribute product_params.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def product_params @product_params end |
#sender ⇒ Object
Returns the value of attribute sender.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def sender @sender end |
#sender_params ⇒ Object
Returns the value of attribute sender_params.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def sender_params @sender_params end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/correios_sigep/models/collect.rb', line 4 def type @type end |