syoboi_calendar 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -17
- data/.rspec +1 -0
- data/CHANGELOG.md +13 -5
- data/README.md +709 -120
- data/lib/syoboi_calendar/client.rb +6 -3
- data/lib/syoboi_calendar/parsers/channel.rb +1 -1
- data/lib/syoboi_calendar/parsers/program.rb +1 -1
- data/lib/syoboi_calendar/parsers/title.rb +1 -1
- data/lib/syoboi_calendar/processors/base.rb +1 -1
- data/lib/syoboi_calendar/resources/base.rb +4 -1
- data/lib/syoboi_calendar/resources/channel.rb +12 -4
- data/lib/syoboi_calendar/resources/program.rb +45 -24
- data/lib/syoboi_calendar/resources/title.rb +33 -16
- data/lib/syoboi_calendar/version.rb +1 -1
- data/spec/spec_helper.rb +0 -9
- data/spec/syoboi_calendar/client_spec.rb +269 -160
- data/syoboi_calendar.gemspec +3 -3
- metadata +6 -35
- data/.travis.yml +0 -10
data/README.md
CHANGED
@@ -1,132 +1,721 @@
|
|
1
|
-
# SyoboiCalendar
|
1
|
+
# SyoboiCalendar
|
2
2
|
|
3
|
-
|
3
|
+
[![CircleCI](https://circleci.com/gh/r7kamura/syoboi_calendar.svg?style=svg)](https://circleci.com/gh/r7kamura/syoboi_calendar)
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/syoboi_calendar.svg)](https://rubygems.org/gems/syoboi_calendar)
|
5
|
+
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/github/r7kamura/syoboi_calendar)
|
6
|
+
|
7
|
+
An API Client library for http://cal.syoboi.jp/ written in Ruby.
|
8
|
+
|
9
|
+
## Requirements
|
10
|
+
|
11
|
+
- Ruby 2.2.2 or higher
|
4
12
|
|
5
13
|
## Installation
|
14
|
+
|
15
|
+
Add this line to your application's Gemfile:
|
16
|
+
|
6
17
|
```ruby
|
7
|
-
# Gemfile
|
8
18
|
gem "syoboi_calendar"
|
9
19
|
```
|
10
20
|
|
21
|
+
And then execute:
|
22
|
+
|
23
|
+
```bash
|
24
|
+
bundle
|
25
|
+
```
|
26
|
+
|
27
|
+
Or install it yourself as:
|
28
|
+
|
29
|
+
```bash
|
30
|
+
gem install syoboi_calendar
|
31
|
+
```
|
32
|
+
|
11
33
|
## Usage
|
34
|
+
|
35
|
+
### SyoboiCalendar::Client.new
|
36
|
+
|
37
|
+
Creates an instance of `SyoboiCalendar::Client`.
|
38
|
+
|
12
39
|
```ruby
|
13
40
|
require "syoboi_calendar"
|
14
|
-
|
15
41
|
client = SyoboiCalendar::Client.new
|
16
|
-
client.channels #=> an Array of SyoboiCalendar::Resources::Channel
|
17
|
-
client.programs #=> an Array of SyoboiCalendar::Resources::Program
|
18
|
-
client.titles #=> an Array of SyoboiCalendar::Resources::Title
|
19
|
-
```
|
20
|
-
|
21
|
-
## API
|
22
|
-
SyoboiCalender::Client provides `#channels`, `#titles`, `#programs` methods.
|
23
|
-
|
24
|
-
```ruby
|
25
|
-
SyoboiCalendar::Client
|
26
|
-
#channels
|
27
|
-
with options {}
|
28
|
-
requests to http://cal.syoboi.jp/db.php?Command=ChLookup
|
29
|
-
with options {:channel_id=>1}
|
30
|
-
requests to http://cal.syoboi.jp/db.php?ChID=1&Command=ChLookup
|
31
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC}
|
32
|
-
requests to http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=20000101_000000-
|
33
|
-
with options {:updated_to=>2000-01-01 00:00:00 UTC}
|
34
|
-
requests to http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=-20000101_000000
|
35
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC, :updated_to=>2000-01-01 00:00:00 UTC}
|
36
|
-
requests to http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=20000101_000000-20000101_000000
|
37
|
-
#titles
|
38
|
-
with options {}
|
39
|
-
requests to http://cal.syoboi.jp/db.php?Command=TitleLookup
|
40
|
-
with options {:title_id=>1}
|
41
|
-
requests to http://cal.syoboi.jp/db.php?Command=TitleLookup&TID=1
|
42
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC}
|
43
|
-
requests to http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=20000101_000000-
|
44
|
-
with options {:updated_to=>2000-01-01 00:00:00 UTC}
|
45
|
-
requests to http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=-20000101_000000
|
46
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC, :updated_to=>2000-01-01 00:00:00 UTC}
|
47
|
-
requests to http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=20000101_000000-20000101_000000
|
48
|
-
#programs
|
49
|
-
with options {}
|
50
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles
|
51
|
-
with options {:program_id=>1}
|
52
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&PID=1
|
53
|
-
with options {:program_id=>1, :channel_id=>2}
|
54
|
-
requests to http://cal.syoboi.jp/db.php?ChID=2&Command=ProgLookup&JOIN=SubTitles&PID=1
|
55
|
-
with options {:count=>1}
|
56
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&Count=1&JOIN=SubTitles
|
57
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC}
|
58
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=20000101_000000-
|
59
|
-
with options {:updated_to=>2000-01-01 00:00:00 UTC}
|
60
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=-20000101_000000
|
61
|
-
with options {:updated_from=>2000-01-01 00:00:00 UTC, :updated_to=>2000-01-01 00:00:00 UTC}
|
62
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=20000101_000000-20000101_000000
|
63
|
-
with options {:started_from=>2000-01-01 00:00:00 UTC}
|
64
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=20000101_000000-
|
65
|
-
with options {:started_to=>2000-01-01 00:00:00 UTC}
|
66
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=-20000101_000000
|
67
|
-
with options {:started_from=>2000-01-01 00:00:00 UTC, :started_to=>2000-01-01 00:00:00 UTC}
|
68
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=20000101_000000-20000101_000000
|
69
|
-
with options {:played_from=>2000-01-01 00:00:00 UTC}
|
70
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=20000101_000000-
|
71
|
-
with options {:played_to=>2000-01-01 00:00:00 UTC}
|
72
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=-20000101_000000
|
73
|
-
with options {:played_from=>2000-01-01 00:00:00 UTC, :played_to=>2000-01-01 00:00:00 UTC}
|
74
|
-
requests to http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=20000101_000000-20000101_000000
|
75
|
-
```
|
76
|
-
|
77
|
-
## Resources
|
78
|
-
SyoboiCalendar::Client returns an Array of resources.
|
79
|
-
|
80
|
-
### SyoboiCalendar::Resources::Channel
|
81
|
-
* comment
|
82
|
-
* epg_url
|
83
|
-
* group_id
|
84
|
-
* id
|
85
|
-
* iepg_name
|
86
|
-
* name
|
87
|
-
* number
|
88
|
-
* url
|
89
|
-
|
90
|
-
|
91
|
-
### SyoboiCalendar::Resources::Title
|
92
|
-
* category_id
|
93
|
-
* comment
|
94
|
-
* first_channel
|
95
|
-
* first_end_month
|
96
|
-
* first_end_year
|
97
|
-
* first_month
|
98
|
-
* first_year
|
99
|
-
* keywords
|
100
|
-
* short_title
|
101
|
-
* sub_titles
|
102
|
-
* id
|
103
|
-
* name
|
104
|
-
* english_name
|
105
|
-
* flag
|
106
|
-
* kana
|
107
|
-
* point
|
108
|
-
* rank
|
109
|
-
|
110
|
-
### SyoboiCalendar::Resources::Program
|
111
|
-
* channel_id
|
112
|
-
* comment
|
113
|
-
* count
|
114
|
-
* deleted?
|
115
|
-
* finished_at
|
116
|
-
* flag
|
117
|
-
* id
|
118
|
-
* revision
|
119
|
-
* started_at
|
120
|
-
* sub_title
|
121
|
-
* title_id
|
122
|
-
* updated_at
|
123
|
-
* warn
|
124
|
-
|
125
|
-
## Eager Loading
|
126
|
-
Client#programs supports `:include` option for eage-loading related resources.
|
127
|
-
|
128
|
-
```ruby
|
129
|
-
programs = client.programs(include: [:channel, :title])
|
130
|
-
programs.first.channel #=> SyoboiCalendar::Resources::Channel
|
131
|
-
programs.first.title #=> SyoboiCalendar::Resources::title
|
132
42
|
```
|
43
|
+
|
44
|
+
### SyoboiCalendar::Client#list_channels
|
45
|
+
|
46
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ChLookup`.
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
client.list_channels
|
50
|
+
```
|
51
|
+
|
52
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?ChID=1&Command=ChLookup`.
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
client.list_channels(channel_id: 1)
|
56
|
+
```
|
57
|
+
|
58
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=20000101_000000-`.
|
59
|
+
|
60
|
+
```ruby
|
61
|
+
client.list_channels(updated_from: Time.new(2000, 1, 1))
|
62
|
+
```
|
63
|
+
|
64
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=-20000101_000000`.
|
65
|
+
|
66
|
+
```ruby
|
67
|
+
client.list_channels(updated_to: Time.new(2000, 1, 1))
|
68
|
+
```
|
69
|
+
|
70
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ChLookup&LastUpdate=20000101_000000-20000201_000000`.
|
71
|
+
|
72
|
+
```ruby
|
73
|
+
client.list_channels(updated_from: Time.new(2000, 1, 1), updated_to: Time.new(2000, 2, 1))
|
74
|
+
```
|
75
|
+
|
76
|
+
### SyoboiCalendar::Client#list_programs
|
77
|
+
|
78
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles`.
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
client.list_programs
|
82
|
+
```
|
83
|
+
|
84
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&PID=1`.
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
client.list_programs(program_id: 1)
|
88
|
+
```
|
89
|
+
|
90
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?ChID=2&Command=ProgLookup&JOIN=SubTitles&PID=1`.
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
client.list_programs(program_id: 1, channel_id: 2)
|
94
|
+
```
|
95
|
+
|
96
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&Count=1&JOIN=SubTitles`.
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
client.list_programs(count: 1)
|
100
|
+
```
|
101
|
+
|
102
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=20000101_000000-`.
|
103
|
+
|
104
|
+
```ruby
|
105
|
+
client.list_programs(updated_from: Time.new(2000, 1, 1))
|
106
|
+
```
|
107
|
+
|
108
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=-20000101_000000`.
|
109
|
+
|
110
|
+
```ruby
|
111
|
+
client.list_programs(updated_to: Time.new(2000, 1, 1))
|
112
|
+
```
|
113
|
+
|
114
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&LastUpdate=20000101_000000-20000201_000000`.
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
client.list_programs(updated_from: Time.new(2000, 1, 1), updated_to: Time.new(2000, 2, 1))
|
118
|
+
```
|
119
|
+
|
120
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=20000101_000000-`.
|
121
|
+
|
122
|
+
```ruby
|
123
|
+
client.list_programs(started_from: Time.new(2000, 1, 1))
|
124
|
+
```
|
125
|
+
|
126
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=-20000101_000000`.
|
127
|
+
|
128
|
+
```ruby
|
129
|
+
client.list_programs(started_to: Time.new(2000, 1, 1))
|
130
|
+
```
|
131
|
+
|
132
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&StTime=20000101_000000-20000201_000000`.
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
client.list_programs(started_from: Time.new(2000, 1, 1), started_to: Time.new(2000, 2, 1))
|
136
|
+
```
|
137
|
+
|
138
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=20000101_000000-`.
|
139
|
+
|
140
|
+
```ruby
|
141
|
+
client.list_programs(played_from: Time.new(2000, 1, 1))
|
142
|
+
```
|
143
|
+
|
144
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=-20000101_000000`.
|
145
|
+
|
146
|
+
```ruby
|
147
|
+
client.list_programs(played_to: Time.new(2000, 1, 1))
|
148
|
+
```
|
149
|
+
|
150
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles&Range=20000101_000000-20000201_000000`.
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
client.list_programs(played_from: Time.new(2000, 1, 1), played_to: Time.new(2000, 2, 1))
|
154
|
+
```
|
155
|
+
|
156
|
+
Eage-loads related resources.
|
157
|
+
|
158
|
+
```ruby
|
159
|
+
client.list_programs(include: [:channel, :title])
|
160
|
+
```
|
161
|
+
|
162
|
+
### SyoboiCalendar::Client#list_titles
|
163
|
+
|
164
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=TitleLookup`.
|
165
|
+
|
166
|
+
```ruby
|
167
|
+
client.list_titles
|
168
|
+
```
|
169
|
+
|
170
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=TitleLookup&TID=1`.
|
171
|
+
|
172
|
+
```ruby
|
173
|
+
client.list_titles(title_id: 1)
|
174
|
+
```
|
175
|
+
|
176
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=20000101_000000-`.
|
177
|
+
|
178
|
+
```ruby
|
179
|
+
client.list_titles(updated_from: Time.new(2000, 1, 1))
|
180
|
+
```
|
181
|
+
|
182
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=-20000101_000000`.
|
183
|
+
|
184
|
+
```ruby
|
185
|
+
client.list_titles(updated_to: Time.new(2000, 1, 1))
|
186
|
+
```
|
187
|
+
|
188
|
+
Sends an HTTP request to `http://cal.syoboi.jp/db.php?Command=TitleLookup&LastUpdate=20000101_000000-20000201_000000`.
|
189
|
+
|
190
|
+
```ruby
|
191
|
+
client.list_titles(updated_from: Time.new(2000, 1, 1), updated_to: Time.new(2000, 2, 1))
|
192
|
+
```
|
193
|
+
|
194
|
+
### SyoboiCalendar::Resources::Channel#comment
|
195
|
+
|
196
|
+
```ruby
|
197
|
+
client.list_channels.first.comment
|
198
|
+
```
|
199
|
+
|
200
|
+
<details>
|
201
|
+
<summary>Result</summary>
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
"http://jk.nicovideo.jp/watch/jk1"
|
205
|
+
```
|
206
|
+
|
207
|
+
</details>
|
208
|
+
|
209
|
+
### SyoboiCalendar::Resources::Channel#epg_url
|
210
|
+
|
211
|
+
```ruby
|
212
|
+
client.list_channels.first.epg_url
|
213
|
+
```
|
214
|
+
|
215
|
+
<details>
|
216
|
+
<summary>Result</summary>
|
217
|
+
|
218
|
+
```ruby
|
219
|
+
"http://www2.nhk.or.jp/hensei/program/wk.cgi?tz=all&ch=21"
|
220
|
+
```
|
221
|
+
|
222
|
+
</details>
|
223
|
+
|
224
|
+
### SyoboiCalendar::Resources::Channel#group_id
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
client.list_channels.first.group_id
|
228
|
+
```
|
229
|
+
|
230
|
+
<details>
|
231
|
+
<summary>Result</summary>
|
232
|
+
|
233
|
+
```ruby
|
234
|
+
11
|
235
|
+
```
|
236
|
+
|
237
|
+
</details>
|
238
|
+
|
239
|
+
### SyoboiCalendar::Resources::Channel#id
|
240
|
+
|
241
|
+
```ruby
|
242
|
+
client.list_channels.first.id
|
243
|
+
```
|
244
|
+
|
245
|
+
<details>
|
246
|
+
<summary>Result</summary>
|
247
|
+
|
248
|
+
```ruby
|
249
|
+
1
|
250
|
+
```
|
251
|
+
|
252
|
+
</details>
|
253
|
+
|
254
|
+
### SyoboiCalendar::Resources::Channel#iepg_name
|
255
|
+
|
256
|
+
```ruby
|
257
|
+
client.list_channels.first.iepg_name
|
258
|
+
```
|
259
|
+
|
260
|
+
<details>
|
261
|
+
<summary>Result</summary>
|
262
|
+
|
263
|
+
```ruby
|
264
|
+
"NHK総合"
|
265
|
+
```
|
266
|
+
|
267
|
+
</details>
|
268
|
+
|
269
|
+
### SyoboiCalendar::Resources::Channel#number
|
270
|
+
|
271
|
+
```ruby
|
272
|
+
client.list_channels.first.number
|
273
|
+
```
|
274
|
+
|
275
|
+
<details>
|
276
|
+
<summary>Result</summary>
|
277
|
+
|
278
|
+
```ruby
|
279
|
+
1
|
280
|
+
```
|
281
|
+
|
282
|
+
</details>
|
283
|
+
|
284
|
+
### SyoboiCalendar::Resources::Channel#url
|
285
|
+
|
286
|
+
```ruby
|
287
|
+
client.list_channels.first.url
|
288
|
+
```
|
289
|
+
|
290
|
+
<details>
|
291
|
+
<summary>Result</summary>
|
292
|
+
|
293
|
+
```ruby
|
294
|
+
"http://www.nhk.or.jp/"
|
295
|
+
```
|
296
|
+
|
297
|
+
</details>
|
298
|
+
|
299
|
+
### SyoboiCalendar::Resources::Program#channel_id
|
300
|
+
|
301
|
+
```ruby
|
302
|
+
client.list_programs.first.channel_id
|
303
|
+
```
|
304
|
+
|
305
|
+
<details>
|
306
|
+
<summary>Result</summary>
|
307
|
+
|
308
|
+
```ruby
|
309
|
+
6
|
310
|
+
```
|
311
|
+
|
312
|
+
</details>
|
313
|
+
|
314
|
+
### SyoboiCalendar::Resources::Program#comment
|
315
|
+
|
316
|
+
```ruby
|
317
|
+
client.list_programs[96].comment
|
318
|
+
```
|
319
|
+
|
320
|
+
<details>
|
321
|
+
<summary>Result</summary>
|
322
|
+
|
323
|
+
```ruby
|
324
|
+
"!都合によりEPISODE7を再放送"
|
325
|
+
```
|
326
|
+
|
327
|
+
</details>
|
328
|
+
|
329
|
+
### SyoboiCalendar::Resources::Program#count
|
330
|
+
|
331
|
+
```ruby
|
332
|
+
client.list_programs.first.count
|
333
|
+
```
|
334
|
+
|
335
|
+
<details>
|
336
|
+
<summary>Result</summary>
|
337
|
+
|
338
|
+
```ruby
|
339
|
+
12
|
340
|
+
```
|
341
|
+
|
342
|
+
</details>
|
343
|
+
|
344
|
+
### SyoboiCalendar::Resources::Program#deleted?
|
345
|
+
|
346
|
+
```ruby
|
347
|
+
client.list_programs.first.count
|
348
|
+
```
|
349
|
+
|
350
|
+
<details>
|
351
|
+
<summary>Result</summary>
|
352
|
+
|
353
|
+
```ruby
|
354
|
+
false
|
355
|
+
```
|
356
|
+
|
357
|
+
</details>
|
358
|
+
|
359
|
+
### SyoboiCalendar::Resources::Program#finished_at
|
360
|
+
|
361
|
+
```ruby
|
362
|
+
client.list_programs.first.finished_at.to_s
|
363
|
+
```
|
364
|
+
|
365
|
+
<details>
|
366
|
+
<summary>Result</summary>
|
367
|
+
|
368
|
+
```ruby
|
369
|
+
"2003-03-28 02:37:00 +0900"
|
370
|
+
```
|
371
|
+
|
372
|
+
</details>
|
373
|
+
|
374
|
+
### SyoboiCalendar::Resources::Program#flag
|
375
|
+
|
376
|
+
```ruby
|
377
|
+
client.list_programs.first.flag
|
378
|
+
```
|
379
|
+
|
380
|
+
<details>
|
381
|
+
<summary>Result</summary>
|
382
|
+
|
383
|
+
```ruby
|
384
|
+
0
|
385
|
+
```
|
386
|
+
|
387
|
+
</details>
|
388
|
+
|
389
|
+
### SyoboiCalendar::Resources::Program#revision
|
390
|
+
|
391
|
+
```ruby
|
392
|
+
client.list_programs.first.revision
|
393
|
+
```
|
394
|
+
|
395
|
+
<details>
|
396
|
+
<summary>Result</summary>
|
397
|
+
|
398
|
+
```ruby
|
399
|
+
0
|
400
|
+
```
|
401
|
+
|
402
|
+
</details>
|
403
|
+
|
404
|
+
### SyoboiCalendar::Resources::Program#started_at
|
405
|
+
|
406
|
+
```ruby
|
407
|
+
client.list_programs.first.started_at.to_s
|
408
|
+
```
|
409
|
+
|
410
|
+
<details>
|
411
|
+
<summary>Result</summary>
|
412
|
+
|
413
|
+
```ruby
|
414
|
+
"2003-03-28 02:07:00 +0900"
|
415
|
+
```
|
416
|
+
|
417
|
+
</details>
|
418
|
+
|
419
|
+
### SyoboiCalendar::Resources::Program#sub_title
|
420
|
+
|
421
|
+
```ruby
|
422
|
+
client.list_programs.first.sub_title
|
423
|
+
```
|
424
|
+
|
425
|
+
<details>
|
426
|
+
<summary>Result</summary>
|
427
|
+
|
428
|
+
```ruby
|
429
|
+
"魔法遣いに大切なこと"
|
430
|
+
```
|
431
|
+
|
432
|
+
</details>
|
433
|
+
|
434
|
+
### SyoboiCalendar::Resources::Program#title_id
|
435
|
+
|
436
|
+
```ruby
|
437
|
+
client.list_programs.first.title_id
|
438
|
+
```
|
439
|
+
|
440
|
+
<details>
|
441
|
+
<summary>Result</summary>
|
442
|
+
|
443
|
+
```ruby
|
444
|
+
1
|
445
|
+
```
|
446
|
+
|
447
|
+
</details>
|
448
|
+
|
449
|
+
### SyoboiCalendar::Resources::Program#updated_at
|
450
|
+
|
451
|
+
```ruby
|
452
|
+
client.list_programs.first.updated_at.to_s
|
453
|
+
```
|
454
|
+
|
455
|
+
<details>
|
456
|
+
<summary>Result</summary>
|
457
|
+
|
458
|
+
```ruby
|
459
|
+
"2003-03-27 03:38:14 +0900"
|
460
|
+
```
|
461
|
+
|
462
|
+
</details>
|
463
|
+
|
464
|
+
### SyoboiCalendar::Resources::Program#warn
|
465
|
+
|
466
|
+
```ruby
|
467
|
+
client.list_programs.first.warn
|
468
|
+
```
|
469
|
+
|
470
|
+
<details>
|
471
|
+
<summary>Result</summary>
|
472
|
+
|
473
|
+
```ruby
|
474
|
+
1
|
475
|
+
```
|
476
|
+
|
477
|
+
</details>
|
478
|
+
|
479
|
+
### SyoboiCalendar::Resources::Title#category_id
|
480
|
+
|
481
|
+
```ruby
|
482
|
+
client.list_titles(title_id: 1).first.category_id
|
483
|
+
```
|
484
|
+
|
485
|
+
<details>
|
486
|
+
<summary>Result</summary>
|
487
|
+
|
488
|
+
```ruby
|
489
|
+
10
|
490
|
+
```
|
491
|
+
|
492
|
+
</details>
|
493
|
+
|
494
|
+
### SyoboiCalendar::Resources::Title#comment
|
495
|
+
|
496
|
+
```ruby
|
497
|
+
client.list_titles(title_id: 1).first.comment
|
498
|
+
```
|
499
|
+
|
500
|
+
<details>
|
501
|
+
<summary>Result</summary>
|
502
|
+
|
503
|
+
```ruby
|
504
|
+
"*リンク\n-[[J.C.STAFF http://www.jcstaff.co.jp/sho-sai/maho-shokai/maho-story.htm]]\n-[[『魔法遣いに大切なこと』オフィシャルサイト archive://www.yume-mahou.com/]]\n*スタッ フ\n:監督:下田正美\n:原作・脚本:山田典枝\n:掲載:月刊コミックドラゴン(角川書店)\n:キャラクター原案:よしづきくみち\n:キャラクターデザイン:千葉道徳\n:総作画監督:川崎恵子\n:コンセプト・ワークス:横田耕三、幡池裕行\n:美術監督:西川淳一郎\n:色彩設定:石田美由紀\n:撮影監督:秋元央\n:編集:西山茂(タバック)\n:音響監督:田中英行(オーディオ・タナカ)\n:音楽:羽毛田丈史\n:音楽プロデューサー:廣井紀彦(パイオニアLDC)\n:音楽ディレクター:和田亨(キックアップ)\n:音楽協力:テレビ朝日ミュージック\n:録音調整:小原吉男\n:音響効果:今野康之(スワラ プロ)\n:選曲:神保直史\n:録音助手:国分政嗣\n:録音スタジオ:タバック\n:音響制作:オーディオ・タナカ\n:キャスティング協力:好永伸恵\n:ポストプロダクション:東京現像所\n:広報:小出わかな(テレビ朝日)\n:宣伝プロデュース:小林 剛(角川大映)、飯田尚史(パイオニアLDC)\n:アシスタントプロデューサー:佐々木美和(パイオニアLDC)\n:プロデューサー:清水俊(角川大映)、藤 田敏(角川大映)、河野勝(テレビ朝日)、松田章男(パイオニアLDC)\n:アニメーションプロデューサー:新崎力也(Viewworks)、松倉友二(J.C.STAFF)\n:企画:角川大映、テレビ朝日、パイオニアLDC、東北新社、電通、日販、角川書店\n:アニメーション制作:ヴューワークス、J.C.STAFF\n:制作:魔法局、テレビ朝日\n*キャスト\n:菊池ユメ:宮﨑あおい\n:小山田雅美:諏訪部順一\n:ケラ(加藤剛):飯田浩志\n:アンジェラ:渡辺明乃\n:遠藤耕三:中博史\n:古崎力哉:清川元夢\n:森川瑠奈:石毛佐和\n:ギンプン:辻谷耕史\n:ミリンダ:平松晶子\n*オープニング 「風の花」\n:作詞・作曲:おのまきこ\n:編曲:清水信之\n:歌:花*花\n*エンディング 「UNDER THE BLUE SKY」\n:作詞:田岡美樹\n:作曲・編曲:市川裕一\n:編曲:羽毛田丈史\n:歌:the Indigo"
|
505
|
+
```
|
506
|
+
|
507
|
+
</details>
|
508
|
+
|
509
|
+
### SyoboiCalendar::Resources::Title#english_name
|
510
|
+
|
511
|
+
```ruby
|
512
|
+
client.list_titles(title_id: 8).first.english_name
|
513
|
+
```
|
514
|
+
|
515
|
+
<details>
|
516
|
+
<summary>Result</summary>
|
517
|
+
|
518
|
+
```ruby
|
519
|
+
"AIR MASTER"
|
520
|
+
```
|
521
|
+
|
522
|
+
</details>
|
523
|
+
|
524
|
+
### SyoboiCalendar::Resources::Title#first_channel
|
525
|
+
|
526
|
+
```ruby
|
527
|
+
client.list_titles(title_id: 1).first.first_channel
|
528
|
+
```
|
529
|
+
|
530
|
+
<details>
|
531
|
+
<summary>Result</summary>
|
532
|
+
|
533
|
+
```ruby
|
534
|
+
"テレビ朝日"
|
535
|
+
```
|
536
|
+
|
537
|
+
</details>
|
538
|
+
|
539
|
+
### SyoboiCalendar::Resources::Title#first_end_month
|
540
|
+
|
541
|
+
```ruby
|
542
|
+
client.list_titles(title_id: 1).first.first_end_month
|
543
|
+
```
|
544
|
+
|
545
|
+
<details>
|
546
|
+
<summary>Result</summary>
|
547
|
+
|
548
|
+
```ruby
|
549
|
+
3
|
550
|
+
```
|
551
|
+
|
552
|
+
</details>
|
553
|
+
|
554
|
+
### SyoboiCalendar::Resources::Title#first_end_year
|
555
|
+
|
556
|
+
```ruby
|
557
|
+
client.list_titles(title_id: 1).first.first_end_year
|
558
|
+
```
|
559
|
+
|
560
|
+
<details>
|
561
|
+
<summary>Result</summary>
|
562
|
+
|
563
|
+
```ruby
|
564
|
+
2003
|
565
|
+
```
|
566
|
+
|
567
|
+
</details>
|
568
|
+
|
569
|
+
### SyoboiCalendar::Resources::Title#first_month
|
570
|
+
|
571
|
+
```ruby
|
572
|
+
client.list_titles(title_id: 1).first.first_month
|
573
|
+
```
|
574
|
+
|
575
|
+
<details>
|
576
|
+
<summary>Result</summary>
|
577
|
+
|
578
|
+
```ruby
|
579
|
+
1
|
580
|
+
```
|
581
|
+
|
582
|
+
</details>
|
583
|
+
|
584
|
+
### SyoboiCalendar::Resources::Title#first_year
|
585
|
+
|
586
|
+
```ruby
|
587
|
+
client.list_titles(title_id: 1).first.first_year
|
588
|
+
```
|
589
|
+
|
590
|
+
<details>
|
591
|
+
<summary>Result</summary>
|
592
|
+
|
593
|
+
```ruby
|
594
|
+
2003
|
595
|
+
```
|
596
|
+
|
597
|
+
</details>
|
598
|
+
|
599
|
+
### SyoboiCalendar::Resources::Title#flag
|
600
|
+
|
601
|
+
```ruby
|
602
|
+
client.list_titles(title_id: 1).first.flag
|
603
|
+
```
|
604
|
+
|
605
|
+
<details>
|
606
|
+
<summary>Result</summary>
|
607
|
+
|
608
|
+
```ruby
|
609
|
+
0
|
610
|
+
```
|
611
|
+
|
612
|
+
</details>
|
613
|
+
|
614
|
+
### SyoboiCalendar::Resources::Title#id
|
615
|
+
|
616
|
+
```ruby
|
617
|
+
client.list_titles(title_id: 1).first.id
|
618
|
+
```
|
619
|
+
|
620
|
+
<details>
|
621
|
+
<summary>Result</summary>
|
622
|
+
|
623
|
+
```ruby
|
624
|
+
1
|
625
|
+
```
|
626
|
+
|
627
|
+
</details>
|
628
|
+
|
629
|
+
### SyoboiCalendar::Resources::Title#kana
|
630
|
+
|
631
|
+
```ruby
|
632
|
+
client.list_titles(title_id: 1).first.kana
|
633
|
+
```
|
634
|
+
|
635
|
+
<details>
|
636
|
+
<summary>Result</summary>
|
637
|
+
|
638
|
+
```ruby
|
639
|
+
"まほうつかいにたいせつなこと"
|
640
|
+
```
|
641
|
+
|
642
|
+
</details>
|
643
|
+
|
644
|
+
### SyoboiCalendar::Resources::Title#keywords
|
645
|
+
|
646
|
+
```ruby
|
647
|
+
client.list_titles(title_id: 2).first.keywords
|
648
|
+
```
|
649
|
+
|
650
|
+
<details>
|
651
|
+
<summary>Result</summary>
|
652
|
+
|
653
|
+
```ruby
|
654
|
+
"ソニックX"
|
655
|
+
```
|
656
|
+
|
657
|
+
</details>
|
658
|
+
|
659
|
+
### SyoboiCalendar::Resources::Title#point
|
660
|
+
|
661
|
+
```ruby
|
662
|
+
client.list_titles(title_id: 1).first.point
|
663
|
+
```
|
664
|
+
|
665
|
+
<details>
|
666
|
+
<summary>Result</summary>
|
667
|
+
|
668
|
+
```ruby
|
669
|
+
4
|
670
|
+
```
|
671
|
+
|
672
|
+
</details>
|
673
|
+
|
674
|
+
### SyoboiCalendar::Resources::Title#rank
|
675
|
+
|
676
|
+
```ruby
|
677
|
+
client.list_titles(title_id: 1).first.rank
|
678
|
+
```
|
679
|
+
|
680
|
+
<details>
|
681
|
+
<summary>Result</summary>
|
682
|
+
|
683
|
+
```ruby
|
684
|
+
2825
|
685
|
+
```
|
686
|
+
|
687
|
+
</details>
|
688
|
+
|
689
|
+
### SyoboiCalendar::Resources::Title#short_title
|
690
|
+
|
691
|
+
```ruby
|
692
|
+
client.list_titles(title_id: 4).first.short_title
|
693
|
+
```
|
694
|
+
|
695
|
+
<details>
|
696
|
+
<summary>Result</summary>
|
697
|
+
|
698
|
+
```ruby
|
699
|
+
"ワンダバスタイル"
|
700
|
+
```
|
701
|
+
|
702
|
+
</details>
|
703
|
+
|
704
|
+
### SyoboiCalendar::Resources::Title#sub_titles
|
705
|
+
|
706
|
+
```ruby
|
707
|
+
client.list_titles(title_id: 1).first.sub_titles
|
708
|
+
```
|
709
|
+
|
710
|
+
<details>
|
711
|
+
<summary>Result</summary>
|
712
|
+
|
713
|
+
```ruby
|
714
|
+
"*001*夕焼けと鉄骨・前編\n*002*夕焼けと鉄骨・後編\n*003*最高のニュース\n*004*夏の夜と魔法遣い\n*005*エプロンとシャンパン\n*006*魔法遣いになりたい\n*007*魔法遣いになれなかっ た魔法遣い\n*008*恋のバカヂカラ\n*009*ユメと少女と夏の種\n*010*魔法の行方\n*011*折れてしまった虹\n*012*魔法遣いに大切なこと"
|
715
|
+
```
|
716
|
+
|
717
|
+
</details>
|
718
|
+
|
719
|
+
## Documentation
|
720
|
+
|
721
|
+
See API documentation at http://www.rubydoc.info/github/r7kamura/syoboi_calendar.
|