Class: Chilexpress::Receiver

Inherits:
Object
  • Object
show all
Defined in:
lib/chilexpress/receiver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject (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_timeObject (readonly)

Returns the value of attribute delivery_time.



3
4
5
# File 'lib/chilexpress/receiver.rb', line 3

def delivery_time
  @delivery_time
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/chilexpress/receiver.rb', line 3

def name
  @name
end

#rutObject (readonly)

Returns the value of attribute rut.



3
4
5
# File 'lib/chilexpress/receiver.rb', line 3

def rut
  @rut
end