Class: Deliverable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delivery_id, is_deliverable, partner_id = "", delivery_cost = "", delivery_size = "") ⇒ Deliverable

Returns a new instance of Deliverable.



4
5
6
7
8
9
10
# File 'lib/deliverable.rb', line 4

def initialize(delivery_id, is_deliverable, partner_id="", delivery_cost="", delivery_size="")
	self.delivery_id = delivery_id
	self.is_deliverable = is_deliverable
	self.partner_id = partner_id
	self.delivery_cost = delivery_cost
	self.delivery_size = delivery_size
end

Instance Attribute Details

#delivery_costObject

Returns the value of attribute delivery_cost.



2
3
4
# File 'lib/deliverable.rb', line 2

def delivery_cost
  @delivery_cost
end

#delivery_idObject

Returns the value of attribute delivery_id.



2
3
4
# File 'lib/deliverable.rb', line 2

def delivery_id
  @delivery_id
end

#delivery_sizeObject

Returns the value of attribute delivery_size.



2
3
4
# File 'lib/deliverable.rb', line 2

def delivery_size
  @delivery_size
end

#is_deliverableObject

Returns the value of attribute is_deliverable.



2
3
4
# File 'lib/deliverable.rb', line 2

def is_deliverable
  @is_deliverable
end

#partner_idObject

Returns the value of attribute partner_id.



2
3
4
# File 'lib/deliverable.rb', line 2

def partner_id
  @partner_id
end