Class: Deliverable
- Inherits:
-
Object
- Object
- Deliverable
- Defined in:
- lib/deliverable.rb
Instance Attribute Summary collapse
-
#delivery_cost ⇒ Object
Returns the value of attribute delivery_cost.
-
#delivery_id ⇒ Object
Returns the value of attribute delivery_id.
-
#delivery_size ⇒ Object
Returns the value of attribute delivery_size.
-
#is_deliverable ⇒ Object
Returns the value of attribute is_deliverable.
-
#partner_id ⇒ Object
Returns the value of attribute partner_id.
Instance Method Summary collapse
-
#initialize(delivery_id, is_deliverable, partner_id = "", delivery_cost = "", delivery_size = "") ⇒ Deliverable
constructor
A new instance of Deliverable.
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_cost ⇒ Object
Returns the value of attribute delivery_cost.
2 3 4 |
# File 'lib/deliverable.rb', line 2 def delivery_cost @delivery_cost end |
#delivery_id ⇒ Object
Returns the value of attribute delivery_id.
2 3 4 |
# File 'lib/deliverable.rb', line 2 def delivery_id @delivery_id end |
#delivery_size ⇒ Object
Returns the value of attribute delivery_size.
2 3 4 |
# File 'lib/deliverable.rb', line 2 def delivery_size @delivery_size end |
#is_deliverable ⇒ Object
Returns the value of attribute is_deliverable.
2 3 4 |
# File 'lib/deliverable.rb', line 2 def is_deliverable @is_deliverable end |
#partner_id ⇒ Object
Returns the value of attribute partner_id.
2 3 4 |
# File 'lib/deliverable.rb', line 2 def partner_id @partner_id end |