Class: Hungrytable::ReservationCancel
- Inherits:
-
Object
- Object
- Hungrytable::ReservationCancel
- Includes:
- RequestExtensions
- Defined in:
- lib/hungrytable/reservation_cancel.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ReservationCancel
constructor
A new instance of ReservationCancel.
- #successful? ⇒ Boolean
Constructor Details
#initialize(opts = {}) ⇒ ReservationCancel
Returns a new instance of ReservationCancel.
7 8 9 10 11 |
# File 'lib/hungrytable/reservation_cancel.rb', line 7 def initialize opts={} @opts = opts ensure_required_opts @requester = opts[:requester] || GetRequest end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
5 6 7 |
# File 'lib/hungrytable/reservation_cancel.rb', line 5 def opts @opts end |
Instance Method Details
#successful? ⇒ Boolean
13 14 15 |
# File 'lib/hungrytable/reservation_cancel.rb', line 13 def successful? details["ns:ErrorID"] == "0" end |