module NHKProgram

Constants

BadRequest

Raised when NHK Program returns the HTTP status code 400

ClientError

Raised when NHK Program returns the HTTP status code 4xx

Error

Custom error class for rescuing from all NHK Program errors

Forbidden

Raised when NHK Program returns the HTTP status code 403

InternalServerError

Raised when NHK Program returns the HTTP status code 500

NotAuthorized

Raised when NHK Program returns the HTTP status code 401

NotFound

Raised when NHK Program returns the HTTP status code 404

ServerError

Raised when NHK Program returns the HTTP status code 5xx

ServiceUnavailable

Raised when NHK Program returns the HTTP status code 3

VERSION

Public Class Methods

method_missing(method_name, *args, &block) click to toggle source

Delegate to {NHKProgram::Client}

Calls superclass method
# File lib/nhk_program.rb, line 17
def self.method_missing(method_name, *args, &block)
  return super unless new.respond_to?(method_name)
  new.send(method_name, *args, &block)
end
new(options = {}) click to toggle source

Alias for NHKProgram::Client.new

@return [NHKProgram::Client]

# File lib/nhk_program.rb, line 12
def self.new(options = {})
  Client.new(options)
end
respond_to?(method_name, include_private = false) click to toggle source

Delegate to {NHKProgram::Client}

Calls superclass method
# File lib/nhk_program.rb, line 23
def self.respond_to?(method_name, include_private = false)
  return new.respond_to?(method_name, include_private) || super
end