Class: Campgrounds::CampgroundDetails

Inherits:
Base
  • Object
show all
Defined in:
lib/campgrounds/campground_details.rb

Constant Summary collapse

Path =
'/campground/details'

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Base

#campground_details, #campground_search, #campsite_search, #initialize, #query

Constructor Details

This class inherits a constructor from Campgrounds::Base

Instance Method Details

#find(options = {}) ⇒ Object

This find method is here only for consitency of method names at this point. May add more features later.



7
8
9
# File 'lib/campgrounds/campground_details.rb', line 7

def find(options={})
  query(Path, options)
end

#request(options = {}) ⇒ Object

Call the Campground Details API, open to use it’s default parameters.

Required Parameters


contractCode: “contractCode” is a syonym for contractID, which is what is returned by the Campground Search API. It specifies the jurisdiction for the campground. This parameter must be used in conjuction with parkId.

parkId: Facility ID “parkId” is a synonym for “facilityID”, which is returned by the Campground Search API. It is a unique identifier for the campground.



21
22
23
# File 'lib/campgrounds/campground_details.rb', line 21

def request(options={})
  query(Path, options)
end