Class: Chilexpress::Receiver
- Inherits:
-
Object
- Object
- Chilexpress::Receiver
- Defined in:
- lib/chilexpress/receiver.rb
Instance Attribute Summary collapse
-
#delivery_date ⇒ Object
readonly
Returns the value of attribute delivery_date.
-
#delivery_time ⇒ Object
readonly
Returns the value of attribute delivery_time.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rut ⇒ Object
readonly
Returns the value of attribute rut.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Receiver
constructor
A new instance of Receiver.
Constructor Details
#initialize(attributes) ⇒ Receiver
Returns a new instance of Receiver.
5 6 7 8 9 10 |
# File 'lib/chilexpress/receiver.rb', line 5 def initialize(attributes) @rut = attributes[:rut] @name = attributes[:name] @delivery_date = attributes[:delivery_date] @delivery_time = attributes[:delivery_time] end |
Instance Attribute Details
#delivery_date ⇒ Object (readonly)
Returns the value of attribute delivery_date.
3 4 5 |
# File 'lib/chilexpress/receiver.rb', line 3 def delivery_date @delivery_date end |
#delivery_time ⇒ Object (readonly)
Returns the value of attribute delivery_time.
3 4 5 |
# File 'lib/chilexpress/receiver.rb', line 3 def delivery_time @delivery_time end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/chilexpress/receiver.rb', line 3 def name @name end |
#rut ⇒ Object (readonly)
Returns the value of attribute rut.
3 4 5 |
# File 'lib/chilexpress/receiver.rb', line 3 def rut @rut end |