Class: QuickTravel::Package

Inherits:
Adapter
  • Object
show all
Defined in:
lib/quick_travel/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Adapter

all, belongs_to, create, find, has_many, #to_s, update

Methods included from InitFromHash

#define_readers, #initialize, #to_hash

Instance Attribute Details

#error_messageObject (readonly)

Returns the value of attribute error_message.



5
6
7
# File 'lib/quick_travel/package.rb', line 5

def error_message
  @error_message
end

Instance Method Details

#product_typeObject



9
10
11
# File 'lib/quick_travel/package.rb', line 9

def product_type
  QuickTravel::ProductType.find(product_type_id)
end