Class: Yt::Status
- Inherits:
-
Object
- Object
- Yt::Status
- Defined in:
- lib/yt/models/status.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Status
constructor
A new instance of Status.
- #privacy_status ⇒ Object
-
#private? ⇒ Boolean
Is the resource private?.
-
#public? ⇒ Boolean
Is the resource public?.
-
#unlisted? ⇒ Boolean
Is the resource unlisted?.
Constructor Details
#initialize(options = {}) ⇒ Status
Returns a new instance of Status.
3 4 5 |
# File 'lib/yt/models/status.rb', line 3 def initialize( = {}) @data = [:data] end |
Instance Method Details
#privacy_status ⇒ Object
22 23 24 |
# File 'lib/yt/models/status.rb', line 22 def privacy_status @privacy_status ||= @data['privacyStatus'] end |
#private? ⇒ Boolean
Returns Is the resource private?.
13 14 15 |
# File 'lib/yt/models/status.rb', line 13 def private? privacy_status == 'private' end |
#public? ⇒ Boolean
Returns Is the resource public?.
8 9 10 |
# File 'lib/yt/models/status.rb', line 8 def public? privacy_status == 'public' end |
#unlisted? ⇒ Boolean
Returns Is the resource unlisted?.
18 19 20 |
# File 'lib/yt/models/status.rb', line 18 def unlisted? privacy_status == 'unlisted' end |