Class: SyoboiCalendar::Resources::TitleResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/title_resource.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#response

Instance Method Summary collapse

Methods inherited from BaseResource

#initialize, #updated_at

Constructor Details

This class inherits a constructor from SyoboiCalendar::Resources::BaseResource

Instance Method Details

#category_idInteger?

Note:

0: その他1: アニメ2: ラジオ3: テレビ4: 特撮5: アニメ関連6: メモ7: OVA 8: 映画

10: アニメ(終了/再放送)

Returns:

  • (Integer, nil)


16
17
18
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 16

def category_id
  response.Cat.try(:to_i)
end

#commentString?

Returns:

  • (String, nil)


21
22
23
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 21

def comment
  response.Comment
end

#english_nameString?

Returns:

  • (String, nil)


26
27
28
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 26

def english_name
  response.TitleEN
end

#first_channelString?

Returns:

  • (String, nil)


31
32
33
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 31

def first_channel
  response.FirstCh
end

#first_end_monthInteger?

Returns:

  • (Integer, nil)


36
37
38
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 36

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

#first_end_yearInteger?

Returns:

  • (Integer, nil)


41
42
43
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 41

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

#first_monthInteger?

Returns:

  • (Integer, nil)


46
47
48
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 46

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

#first_yearInteger?

Returns:

  • (Integer, nil)


51
52
53
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 51

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

#flagInteger?

Returns:

  • (Integer, nil)


66
67
68
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 66

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

#idInteger?

Returns:

  • (Integer, nil)


56
57
58
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 56

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

#kanaString?

Returns:

  • (String, nil)


71
72
73
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 71

def kana
  response.TitleYomi
end

#keywordsString?

Returns:

  • (String, nil)


76
77
78
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 76

def keywords
  response.Keywords
end

#nameString?

Returns:

  • (String, nil)


61
62
63
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 61

def name
  response.Title
end

#pointInteger?

Returns:

  • (Integer, nil)


91
92
93
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 91

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

#rankInteger?

Returns:

  • (Integer, nil)


96
97
98
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 96

def rank
  response.UserPointRank.try(:to_i)
end

#short_titleString?

Returns:

  • (String, nil)


81
82
83
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 81

def short_title
  response.ShortTitle
end

#sub_titlesString?

Returns:

  • (String, nil)


86
87
88
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 86

def sub_titles
  response.SubTitles
end