Sha256: 792d85fd6fa10e6ddc59d2fd1f8afa124a33e021a669243fcdee614dbf16ea15

Contents?: true

Size: 425 Bytes

Versions: 6

Compression:

Stored size: 425 Bytes

Contents

module SyoboiCalendar
  module Responses
    class ListChannelsResponse < BaseResponse
      private

      # @note Override
      def resource_class
        ::SyoboiCalendar::Resources::ChannelResource
      end

      # @note Override
      def response_key
        "ChLookupResponse"
      end

      # @note Override
      def source_or_sources
        body[response_key]["ChItems"]["ChItem"]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
syoboi_calendar-0.9.4 lib/syoboi_calendar/responses/list_channels_response.rb
syoboi_calendar-0.9.3 lib/syoboi_calendar/responses/list_channels_response.rb
syoboi_calendar-0.9.2 lib/syoboi_calendar/responses/list_channels_response.rb
syoboi_calendar-0.9.1 lib/syoboi_calendar/responses/list_channels_response.rb
syoboi_calendar-0.9.0 lib/syoboi_calendar/responses/list_channels_response.rb
syoboi_calendar-0.8.0 lib/syoboi_calendar/responses/list_channels_response.rb