Module: SparkApi::Models::Media
- Included in:
- Video, VirtualTour
- Defined in:
- lib/spark_api/models/media.rb
Instance Method Summary collapse
- #automatic? ⇒ Boolean
- #description ⇒ Object
- #private? ⇒ Boolean
- #public? ⇒ Boolean
-
#url ⇒ Object
This module is effectively an interface and helper to combine common media actions and information.
Instance Method Details
#automatic? ⇒ Boolean
24 25 26 |
# File 'lib/spark_api/models/media.rb', line 24 def automatic? attributes['Privacy'] == 'Automatic' end |
#description ⇒ Object
12 13 14 |
# File 'lib/spark_api/models/media.rb', line 12 def description raise "Not Implemented" end |
#private? ⇒ Boolean
16 17 18 |
# File 'lib/spark_api/models/media.rb', line 16 def private? attributes['Privacy'] == 'Private' end |
#public? ⇒ Boolean
20 21 22 |
# File 'lib/spark_api/models/media.rb', line 20 def public? attributes['Privacy'] == 'Public' end |
#url ⇒ Object
This module is effectively an interface and helper to combine common media actions and information. Media types (videos, virtual tours, etc) should include this module and implement the methods contained
8 9 10 |
# File 'lib/spark_api/models/media.rb', line 8 def url raise "Not Implemented" end |