Class: Gillbus::Seat

Inherits:
Object
  • Object
show all
Extended by:
Fields
Includes:
UpdateAttrs
Defined in:
lib/gillbus/structs/seat.rb

Instance Method Summary collapse

Methods included from Fields

parse, parser, parser_class

Methods included from UpdateAttrs

#initialize, #update_attrs

Instance Method Details

#free?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/gillbus/structs/seat.rb', line 29

def free?
  type == 3 || type == 9
end

#isle?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/gillbus/structs/seat.rb', line 33

def isle?
  type == 0 || type.nil?
end