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)


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

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

#isle?Boolean

Returns:

  • (Boolean)


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

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