Class: SyoboiCalendar::Resources::Title

Inherits:
Base
  • Object
show all
Defined in:
lib/syoboi_calendar/resources/title.rb

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#initialize, #updated_at

Constructor Details

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

Instance Method Details

#category_idObject



4
5
6
# File 'lib/syoboi_calendar/resources/title.rb', line 4

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

#commentObject



8
9
10
# File 'lib/syoboi_calendar/resources/title.rb', line 8

def comment
  response.Comment
end

#english_nameObject



52
53
54
# File 'lib/syoboi_calendar/resources/title.rb', line 52

def english_name
  response.TitleEN
end

#first_channelObject



12
13
14
# File 'lib/syoboi_calendar/resources/title.rb', line 12

def first_channel
  response.FirstCh
end

#first_end_monthObject



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

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

#first_end_yearObject



20
21
22
# File 'lib/syoboi_calendar/resources/title.rb', line 20

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

#first_monthObject



24
25
26
# File 'lib/syoboi_calendar/resources/title.rb', line 24

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

#first_yearObject



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

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

#flagObject



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

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

#idObject



44
45
46
# File 'lib/syoboi_calendar/resources/title.rb', line 44

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

#kanaObject



60
61
62
# File 'lib/syoboi_calendar/resources/title.rb', line 60

def kana
  response.TitleYomi
end

#keywordsObject



32
33
34
# File 'lib/syoboi_calendar/resources/title.rb', line 32

def keywords
  response.Keywords
end

#nameObject



48
49
50
# File 'lib/syoboi_calendar/resources/title.rb', line 48

def name
  response.Title
end

#pointObject



64
65
66
# File 'lib/syoboi_calendar/resources/title.rb', line 64

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

#rankObject



68
69
70
# File 'lib/syoboi_calendar/resources/title.rb', line 68

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

#short_titleObject



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

def short_title
  response.ShortTitle
end

#sub_titlesObject



40
41
42
# File 'lib/syoboi_calendar/resources/title.rb', line 40

def sub_titles
  response.SubTitles
end