class Supercamp::Criteria::Campsite

Constants

ELECTRIC_HOOKUPS
PERKS
TYPES

Public Instance Methods

arrival(date) click to toggle source

arvdate: Arrival Date

The date in which the camper wants to start camping in mm/dd/yyyy format.

# File lib/supercamp/criteria/campsite.rb, line 49
def arrival(date)
  merge_option(:arvdate, date)
  self
end
min_elec_amps(val) click to toggle source

hookup: Electric Hookup

# File lib/supercamp/criteria/campsite.rb, line 89
def min_elec_amps(val)
  code = ELECTRIC_HOOKUPS.fetch(val.to_s)
  merge_option(:hookup, code)
  self
end
min_equip_length(val) click to toggle source

eqplen: Equipment Length

If the camper wants to find campgrounds where his 50 foot RV will fit, issue a query where eqplen=50

# File lib/supercamp/criteria/campsite.rb, line 71
def min_equip_length(val)
  merge_option("eqplen", val)
  self
end
nights(amt) click to toggle source

lengthOfStay: Length of Stay

When combined with arvdate, this parameter determines how long the camper would like to reserve the campground.

# File lib/supercamp/criteria/campsite.rb, line 60
def nights(amt)
  merge_option("lengthOfStay", amt)
  self
end
people(amt) click to toggle source

Maxpeople: Number of campers

# File lib/supercamp/criteria/campsite.rb, line 80
def people(amt)
  merge_option("Maxpeople", amt)
  self
end
site_type(name) click to toggle source

siteType

If unspecified, all site types are returned.

# File lib/supercamp/criteria/campsite.rb, line 38
def site_type(name)
  code = TYPES.fetch(name.to_s)
  merge_option("siteType", code)
  self
end