class NicoSearchSnapshot

Constants

VERSION

Public Class Methods

new(issuer = nil) click to toggle source

NicoSearchSnapshot.new('Your Application Name')

# File lib/nico_search_snapshot.rb, line 7
def initialize(issuer = nil)
  @issuer = issuer
end

Private Class Methods

default_options() click to toggle source
# File lib/nico_search_snapshot.rb, line 84
def self.default_options
  @default_options ||= {
    service: ["video"],
    search: ["title", "description", "tags"],
    join: ["cmsid", "title", "description", "tags", "start_time",
           "thumbnail_url", "view_counter", "comment_counter",
           "mylist_counter", "last_res_body", "length_seconds"],
    filters: [],
    sort_by: "last_comment_time",
    order: "desc",
    from: 0,
    size: 10
  }
end

Public Instance Methods

Private Instance Methods

http_client() click to toggle source
# File lib/nico_search_snapshot.rb, line 99
def http_client
  @http_client ||= HTTPClient.new
end