Class: Yt::Models::Status
- Inherits:
-
Object
- Object
- Yt::Models::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.
4 5 6 |
# File 'lib/yt/models/status.rb', line 4 def initialize( = {}) @data = [:data] end |
Instance Method Details
#privacy_status ⇒ Object
23 24 25 |
# File 'lib/yt/models/status.rb', line 23 def privacy_status @privacy_status ||= @data['privacyStatus'] end |
#private? ⇒ Boolean
Returns Is the resource private?.
14 15 16 |
# File 'lib/yt/models/status.rb', line 14 def private? privacy_status == 'private' end |
#public? ⇒ Boolean
Returns Is the resource public?.
9 10 11 |
# File 'lib/yt/models/status.rb', line 9 def public? privacy_status == 'public' end |
#unlisted? ⇒ Boolean
Returns Is the resource unlisted?.
19 20 21 |
# File 'lib/yt/models/status.rb', line 19 def unlisted? privacy_status == 'unlisted' end |