0.01
No commit activity in last 3 years
No release in over 3 years
An API Client library for http://cal.syoboi.jp/ written in Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
= 2.14.1

Runtime

 Project Readme

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