Class: TwicasStream::Movie::GetMovieInfo
- Inherits:
-
Object
- Object
- TwicasStream::Movie::GetMovieInfo
- Defined in:
- lib/twicas_stream/movie.rb
Constant Summary collapse
- PREFIX_URL =
:movie => { :id => “189037369”, :user_id => “182224938”, :title => “ライブ #189037369”, :subtitle => “ライブ配信中!”, :last_owner_comment => “もいもい”, :category => “girls_jcjk_jp”, :link => “twitcasting.tv/twitcasting_jp/movie/189037369”, :is_live => false, :is_recorded => false, :comment_count => 2124, :large_thumbnail => “”, :small_thumbnail => “”, :country => “jp”, :duration => 1186, :created => 1438500282, :is_collabo => false, :is_protected => false, :max_view_count => 1675, :current_view_count => 20848, :total_view_count => 20848, :hls_url => “twitcasting.tv/twitcasting_jp/metastream.m3u8/?video=1” }, :broadcaster => { :id => “182224938”, :screen_id => “twitcasting_jp”, :name => “ツイキャス公式”, :image => “”, :profile => “ツイキャスの公式アカウントです。ツイキャスに関するお知らせなどを投稿します。なお、お問い合わせは t.co/4gCf7XVm7N までお願いします。公式Facebookページ:ttps://t.co/bxYVwpzTJBn公式Instagramnt.co/Bm2O2J2Kfs”, :level => 24, :last_movie_id => “189037369”, :is_live => true, :supporter_count => 0, :supporting_count => 0, :created => 0 }, :tags => [“人気”, “コンティニュー中”, “レベル40+”, “初見さん大歓迎”, “まったり”, “雑談”] }
'movies'
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(movie_id) ⇒ GetMovieInfo
constructor
A new instance of GetMovieInfo.
Constructor Details
#initialize(movie_id) ⇒ GetMovieInfo
Returns a new instance of GetMovieInfo.
53 54 55 56 57 58 59 60 |
# File 'lib/twicas_stream/movie.rb', line 53 def initialize movie_id @response = Hash.new url = [BASE_URL, PREFIX_URL, movie_id].join('/') # => 'https://apiv2.twitcasting.tv/movies/:movie_id' @response = TwicasStream.parse(TwicasStream.get(url)) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/twicas_stream/movie.rb', line 10 def response @response end |