Sha256: f86fb2c72b071fdbdd250374034c75a15196d93cc5e8bca0eaa4b6c306f88370

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

module SyoboiCalendar
  module Resources
    class Title < Base
      def category_id
        response.Cat.try(:to_i)
      end

      def comment
        response.Comment
      end

      def first_channel
        response.FirstCh
      end

      def first_end_month
        response.FirstEndMonth.try(:to_i)
      end

      def first_end_year
        response.FirstEndYear.try(:to_i)
      end

      def first_month
        response.FirstMonth.try(:to_i)
      end

      def first_year
        response.FirstYear.try(:to_i)
      end

      def keywords
        response.Keywords
      end

      def short_title
        response.ShortTitle
      end

      def sub_titles
        response.SubTitles
      end

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

      def name
        response.Title
      end

      def english_name
        response.TitleEN
      end

      def flag
        response.TitleFlag.try(:to_i)
      end

      def kana
        response.TitleYomi
      end

      def point
        response.UserPoint.try(:to_i)
      end

      def rank
        response.UserPointRank.try(:to_i)
      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/title.rb
syoboi_calendar-0.3.0 lib/syoboi_calendar/resources/title.rb