Class: CorreiosSigep::Models::Recipient
- Inherits:
-
Object
- Object
- CorreiosSigep::Models::Recipient
- Defined in:
- lib/correios_sigep/models/recipient.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#area_code ⇒ Object
Returns the value of attribute area_code.
-
#city ⇒ Object
Returns the value of attribute city.
-
#complement ⇒ Object
Returns the value of attribute complement.
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#neighborhood ⇒ Object
Returns the value of attribute neighborhood.
-
#number ⇒ Object
Returns the value of attribute number.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#state ⇒ Object
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Recipient
constructor
A new instance of Recipient.
Constructor Details
#initialize(options = {}) ⇒ Recipient
Returns a new instance of Recipient.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/correios_sigep/models/recipient.rb', line 14 def initialize( = {}) @address = [:address] @area_code = [:area_code] @city = [:city] @complement = [:complement] @email = [:email] @name = [:name] @neighborhood = [:neighborhood] @number = [:number] @phone = [:phone] @postal_code = [:postal_code] @reference = [:reference] @state = [:state] end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def address @address end |
#area_code ⇒ Object
Returns the value of attribute area_code.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def area_code @area_code end |
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def city @city end |
#complement ⇒ Object
Returns the value of attribute complement.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def complement @complement end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def name @name end |
#neighborhood ⇒ Object
Returns the value of attribute neighborhood.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def neighborhood @neighborhood end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def number @number end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def phone @phone end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def postal_code @postal_code end |
#reference ⇒ Object
Returns the value of attribute reference.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def reference @reference end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/correios_sigep/models/recipient.rb', line 4 def state @state end |
Class Method Details
.build(&block) ⇒ Object
8 9 10 11 12 |
# File 'lib/correios_sigep/models/recipient.rb', line 8 def self.build(&block) builder = Builders::Person.new(self) builder.instance_eval(&block) builder.build end |