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

#source

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: アニメ(終了/再放送)


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

def category_id
  if source["Cat"]
    source["Cat"].to_i
  end
end

#commentString?


23
24
25
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 23

def comment
  source["Comment"]
end

#english_nameString?


28
29
30
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 28

def english_name
  source["TitleEN"]
end

#first_channelString?


33
34
35
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 33

def first_channel
  source["FirstCh"]
end

#first_end_monthInteger?


38
39
40
41
42
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 38

def first_end_month
  if source["FirstEndMonth"]
    source["FirstEndMonth"].to_i
  end
end

#first_end_yearInteger?


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

def first_end_year
  if source["FirstEndYear"]
    source["FirstEndYear"].to_i
  end
end

#first_monthInteger?


52
53
54
55
56
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 52

def first_month
  if source["FirstMonth"]
    source["FirstMonth"].to_i
  end
end

#first_yearInteger?


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

def first_year
  if source["FirstYear"]
    source["FirstYear"].to_i
  end
end

#flagInteger?


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

def flag
  if source["TitleFlag"]
    source["TitleFlag"].to_i
  end
end

#idInteger?


73
74
75
76
77
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 73

def id
  if source["TID"]
    source["TID"].to_i
  end
end

#kanaString?


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

def kana
  source["TitleYomi"]
end

#keywordsString?


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

def keywords
  source["Keywords"]
end

#nameString?


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

def name
  source["Title"]
end

#short_titleString?


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

def short_title
  source["ShortTitle"]
end

#sub_titlesString?


100
101
102
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 100

def sub_titles
  source["SubTitles"]
end

#user_pointInteger?


105
106
107
108
109
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 105

def user_point
  if source["UserPoint"]
    source["UserPoint"].to_i
  end
end

#user_point_rankInteger?


112
113
114
115
116
# File 'lib/syoboi_calendar/resources/title_resource.rb', line 112

def user_point_rank
  if source["UserPointRank"]
    source["UserPointRank"].to_i
  end
end