Sha256: 35bb5dabf14693d9bfe8de1bad2a5bdee30700d72143c69984498968e172640b

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

require 'rakuten_web_service/resource'

module RakutenWebService
  module Gora
    class Course < Resource
      endpoint 'https://app.rakuten.co.jp/services/api/Gora/GoraGolfCourseSearch/20170623'

      set_parser do |response|
        response['Items'].map { |item| new(item) }
      end

      attribute :golfCourseId, :golfCourseName, :golfCourseAbbr, :golfCourseNameKana, :golfCourseCaption,
                :address, :latitude, :longitude, :highway, :golfCourseDetailUrl, :reserveCalUrl, :ratingUrl,
                :golfCourseImageUrl, :evaluation
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rakuten_web_service-1.12.0 lib/rakuten_web_service/gora/course.rb
rakuten_web_service-1.11.0 lib/rakuten_web_service/gora/course.rb
rakuten_web_service-1.10.0 lib/rakuten_web_service/gora/course.rb
rakuten_web_service-1.9.2 lib/rakuten_web_service/gora/course.rb
rakuten_web_service-1.9.1 lib/rakuten_web_service/gora/course.rb