Module: SparkApi::Models::Media

Included in:
Video, VirtualTour
Defined in:
lib/spark_api/models/media.rb

Instance Method Summary collapse

Instance Method Details

#automatic?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/spark_api/models/media.rb', line 24

def automatic?
    attributes['Privacy'] == 'Automatic'
end

#descriptionObject



12
13
14
# File 'lib/spark_api/models/media.rb', line 12

def description
    raise "Not Implemented"
end

#private?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/spark_api/models/media.rb', line 16

def private?
    attributes['Privacy'] == 'Private'
end

#public?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/spark_api/models/media.rb', line 20

def public?
    attributes['Privacy'] == 'Public'
end

#urlObject

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