Module: GolfSwitch

Defined in:
lib/golf_switch/course_avail_request.rb,
lib/golf_switch.rb,
lib/golf_switch/area.rb,
lib/golf_switch/course.rb,
lib/golf_switch/player.rb,
lib/golf_switch/country.rb,
lib/golf_switch/payment.rb,
lib/golf_switch/request.rb,
lib/golf_switch/version.rb,
lib/golf_switch/book_golf.rb,
lib/golf_switch/golf_book.rb,
lib/golf_switch/score_card.rb,
lib/golf_switch/cancel_golf.rb,
lib/golf_switch/course_info.rb,
lib/golf_switch/course_list.rb,
lib/golf_switch/region_area.rb,
lib/golf_switch/course_avail.rb,
lib/golf_switch/alt_rate_type.rb,
lib/golf_switch/area_response.rb,
lib/golf_switch/configuration.rb,
lib/golf_switch/course_policy.rb,
lib/golf_switch/book_golf_item.rb,
lib/golf_switch/country_region.rb,
lib/golf_switch/golf_book_info.rb,
lib/golf_switch/available_course.rb,
lib/golf_switch/get_golf_booking.rb,
lib/golf_switch/course_avail_date.rb,
lib/golf_switch/course_avail_list.rb,
lib/golf_switch/course_avail_time.rb,
lib/golf_switch/get_alt_rate_type.rb,
lib/golf_switch/get_course_policy.rb,
lib/golf_switch/course_info_course.rb,
lib/golf_switch/course_list_course.rb,
lib/golf_switch/cancel_golf_response.rb,
lib/golf_switch/course_policy_response.rb

Overview

avail_course = GolfSwitch::CourseAvailRequest.new avail_course.course_avails << GolfSwitch::CourseAvail.new(options) avail_course.course_avails << GolfSwitch::CourseAvail.new(options) avail_course.commit

Defined Under Namespace

Classes: AltRateType, Area, AreaResponse, AvailableCourse, BookGolf, BookGolfItem, CancelGolf, CancelGolfResponse, Configuration, Country, CountryRegion, Course, CourseAvail, CourseAvailDate, CourseAvailList, CourseAvailRequest, CourseAvailTime, CourseInfo, CourseInfoCourse, CourseList, CourseListCourse, CoursePolicy, CoursePolicyResponse, GetAltRateType, GetCoursePolicy, GetGolfBooking, GolfBook, GolfBookInfo, Payment, Player, RegionArea, Request, ScoreCard

Constant Summary collapse

VERSION =
"1.0.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



21
22
23
# File 'lib/golf_switch/configuration.rb', line 21

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
26
27
# File 'lib/golf_switch/configuration.rb', line 23

def self.configure

  self.configuration = Configuration.new
  yield(configuration) if block_given?
end