Method: Osm::Event#spaces?

Defined in:
lib/osm/event.rb

#spaces?(api) ⇒ Boolean

Whether there are spaces left for the event

Parameters:

  • api (Osm::Api)

    The api to use to make the request

Returns:

  • (Boolean)

    whether there are spaces left for the event



340
341
342
343
# File 'lib/osm/event.rb', line 340

def spaces?(api)
  return true unless limited_attendance?
  return attendance_limit > attendees(api)
end