Class: Yt::Models::DeviceFlow

Inherits:
Base
  • Object
show all
Defined in:
lib/yt/models/device_flow.rb

Instance Method Summary collapse

Methods included from Associations::HasReports

#has_report

Methods included from Associations::HasViewerPercentages

#has_viewer_percentages

Methods included from Associations::HasOne

#has_one

Methods included from Associations::HasMany

#has_many

Methods included from Associations::HasAuthentication

#has_authentication

Constructor Details

#initialize(options = {}) ⇒ DeviceFlow

Returns a new instance of DeviceFlow.



6
7
8
# File 'lib/yt/models/device_flow.rb', line 6

def initialize(options = {})
  @data = options[:data]
end

Instance Method Details

#device_codeObject



10
11
12
# File 'lib/yt/models/device_flow.rb', line 10

def device_code
  @device_code ||= @data['device_code']
end

#user_codeObject



14
15
16
# File 'lib/yt/models/device_flow.rb', line 14

def user_code
  @user_code ||= @data['user_code']
end

#verification_urlObject



18
19
20
# File 'lib/yt/models/device_flow.rb', line 18

def verification_url
  @verification_url ||= @data['verification_url']
end