Skip to content
An API Client library for http://cal.syoboi.jp/ written in Ruby.
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec Add some methods on TitleResource Feb 11, 2017
.gitignore Update .gitignore Jan 29, 2017
.rspec
CHANGELOG.md Add version compare link and released date Oct 11, 2018
Gemfile
LICENSE
README.md Remove CircleCI 1.0 badge from README Oct 11, 2018
Rakefile
syoboi_calendar.gemspec

README.md

SyoboiCalendar

Gem Version Documentation

An API Client library for http://cal.syoboi.jp/ written in Ruby.

Requirements

  • Ruby 2.2.2 or higher

Installation

Add this line to your application's Gemfile:

gem "syoboi_calendar"

And then execute:

bundle

Or install it yourself as:

gem install syoboi_calendar

Usage

SyoboiCalendar::Client.new

Creates an instance of SyoboiCalendar::Client.

require "syoboi_calendar"
client = SyoboiCalendar::Client.new

SyoboiCalendar::Client#list_channel_groups

Available options:

  • :channel_group_id
  • :updated_from
  • :updated_to
client.list_channel_groups
http://cal.syoboi.jp/db.php?Command=ChGroupLookup

SyoboiCalendar::Client#list_channels

Available options:

  • :channel_id
  • :updated_from
  • :updated_to
client.list_channels
http://cal.syoboi.jp/db.php?Command=ChLookup

SyoboiCalendar::Client#list_programs

Available options:

  • :count
  • :fields
  • :played_from
  • :played_to
  • :program_id
  • :started_from
  • :started_to
  • :title_id
  • :updated_from
  • :updated_to
client.list_programs
http://cal.syoboi.jp/db.php?Command=ProgLookup&JOIN=SubTitles

SyoboiCalendar::Client#list_titles

Available options:

  • :fields
  • :title_id
  • :updated_from
  • :updated_to
client.list_titles
http://cal.syoboi.jp/db.php?Command=TitleLookup&TID=*

SyoboiCalendar::Responses::BaseResponse

Available methods:

  • #body
  • #code
  • #each
  • #has_error?
  • #headers
  • #message
  • #resources
  • #status

SyoboiCalendar::Resources::ChannelGroupResource

Available methods:

  • #comment
  • #id
  • #name
  • #order

SyoboiCalendar::Resources::ChannelResource

Available methods:

  • #channel_group_id
  • #comment
  • #epg_url
  • #id
  • #iepg_name
  • #name
  • #number
  • #url

SyoboiCalendar::Resources::ProgramResource

Available methods:

  • #channel_id
  • #comment
  • #count
  • #deleted?
  • #finished_at
  • #flag
  • #id
  • #iepg_name
  • #rerun?
  • #revision
  • #started_at
  • #sub_title
  • #title_id
  • #warn

SyoboiCalendar::Resources::TitleResource

Available methods:

  • #casts
  • #category_id
  • #comment
  • #english_name
  • #first_channel
  • #first_end_month
  • #first_end_year
  • #first_month
  • #first_year
  • #flag
  • #id
  • #kana
  • #keywords
  • #name
  • #short_title
  • #songs_ending
  • #songs_inserted
  • #songs_opening
  • #songs_theme
  • #staffs
  • #sub_titles
  • #user_point_rank
  • #user_point
You can’t perform that action at this time.