Module: SeatGeek::State
- Defined in:
- lib/seat_geek/models/state.rb,
lib/seat_geek/models/attendee_count.rb
Instance Method Summary collapse
Instance Method Details
#attendee_count ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/seat_geek/models/attendee_count.rb', line 3 def attendee_count [{attendee_count: 1}, {attendee_count: 2}, {attendee_count: 3}, {attendee_count: 4}, {attendee_count: 5}, {attendee_count: 6}, {attendee_count: 7}, {attendee_count: 8}, {attendee_count: 9}, {attendee_count: 10}, {attendee_count: 11}, {attendee_count: 12}] end |
#states ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/seat_geek/models/state.rb', line 3 def states # @state = [{:state_name=>"AL"}, {:state_name=>"MT"}, {:state_name=>"AK"}, {:state_name=>"NE"}, # {:state_name=>"AZ"}, {:state_name=>"NV"}, {:state_name=>"AR"}, {:state_name=>"NH"}, # {:state_name=>"CA"}, {:state_name=>"NJ"}, {:state_name=>"CO"}, {:state_name=>"NM"}, # {:state_name=>"CT"}, {:state_name=>"NY"}, {:state_name=>"DE"}, {:state_name=>"NC"}, # {:state_name=>"FL"}, {:state_name=>"ND"}, {:state_name=>"GA"}, {:state_name=>"OH"}, # {:state_name=>"HI"}, {:state_name=>"OK"}, {:state_name=>"ID"}, {:state_name=>"OR"}, # {:state_name=>"IL"}, {:state_name=>"PA"}, {:state_name=>"IN"}, {:state_name=>"RI"}, # {:state_name=>"IA"}, {:state_name=>"SC"}, {:state_name=>"KS"}, {:state_name=>"SD"}, # {:state_name=>"KY"}, {:state_name=>"TN"}, {:state_name=>"LA"}, {:state_name=>"TX"}, # {:state_name=>"ME"}, {:state_name=>"UT"}, {:state_name=>"MD"}, {:state_name=>"VT"}, # {:state_name=>"MA"}, {:state_name=>"VA"}, {:state_name=>"MI"}, {:state_name=>"WA"}, # {:state_name=>"MN"}, {:state_name=>"WV"}, {:state_name=>"MS"}, {:state_name=>"WI"}, # {:state_name=>"MO"}, {:state_name=>"WY"}].sort_by { |x| x[:state_name] } [{:state_name=>"NY"}, {:state_name=>"CA"}, {:state_name=>"PA"}, {:state_name=>"FL"}] end |