Class: TwicasStream::User::VerifyCredentials

Inherits:
Object
  • Object
show all
Defined in:
lib/twicas_stream/user.rb

Constant Summary collapse

PREFIX_URL =

{ :app => { :client_id => “182224938.d37f58350925d568e2db24719fe86f11c4d14e0461429e8b5da732fcb1917b6e”, :name => “サンプルアプリケーション”, :owner_user_id => “182224938” }, :supporter_count => 10, :supporting_count => 24, :user => { :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 => “466324920”, :is_live => false, :supporter_count => 0, :supporting_count => 0, :created => 0 } }

'verify_credentials'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVerifyCredentials

Returns a new instance of VerifyCredentials.



68
69
70
71
72
73
74
75
# File 'lib/twicas_stream/user.rb', line 68

def initialize
	@response = Hash.new

	url = [BASE_URL, PREFIX_URL].join('/')
	# => 'https://apiv2.twitcasting.tv/verify_credentials'

	@response = TwicasStream.parse(TwicasStream.get(url))
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



42
43
44
# File 'lib/twicas_stream/user.rb', line 42

def response
  @response
end