Class: Yt::Models::DeviceFlow
Instance Method Summary collapse
- #device_code ⇒ Object
-
#initialize(options = {}) ⇒ DeviceFlow
constructor
A new instance of DeviceFlow.
- #user_code ⇒ Object
- #verification_url ⇒ Object
Methods included from Associations::HasReports
Methods included from Associations::HasViewerPercentages
Methods included from Associations::HasOne
Methods included from Associations::HasMany
Methods included from Associations::HasAuthentication
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( = {}) @data = [:data] end |
Instance Method Details
#device_code ⇒ Object
10 11 12 |
# File 'lib/yt/models/device_flow.rb', line 10 def device_code @device_code ||= @data['device_code'] end |
#user_code ⇒ Object
14 15 16 |
# File 'lib/yt/models/device_flow.rb', line 14 def user_code @user_code ||= @data['user_code'] end |
#verification_url ⇒ Object
18 19 20 |
# File 'lib/yt/models/device_flow.rb', line 18 def verification_url @verification_url ||= @data['verification_url'] end |