Sha256: af09833076f8f82e0eb392a169f3a24bc0b0913cb0c67483d0824acaad099ca8

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

module SyoboiCalendar
  module Resources
    class Channel < Base
      def comment
        response.ChComment
      end

      def epg_url
        response.ChEPGURL
      end

      def group_id
        response.ChGID.try(:to_i)
      end

      def id
        response.ChID.try(:to_i)
      end

      def name
        response.ChName
      end

      def number
        response.ChNumber.try(:to_i)
      end

      def url
        response.ChURL
      end

      def iepg_name
        response.ChiEPGName
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
syoboi_calendar-0.3.1 lib/syoboi_calendar/resources/channel.rb
syoboi_calendar-0.3.0 lib/syoboi_calendar/resources/channel.rb