Class: Drum::Ref

Inherits:
Struct show all
Defined in:
lib/drum/model/ref.rb

Overview

A parsed reference to a resource, usually one or multiple playlists. Can be a folder, a library or the like, located on the local machine or a remote service.

See the README for examples.

Instance Attribute Summary collapse

Instance Attribute Details

#resource_locationObject

Returns The path/id of the resource, service-dependent (usually a String or Symbol).

Returns:

  • (Object)

    The path/id of the resource, service-dependent (usually a String or Symbol)



14
15
16
17
18
# File 'lib/drum/model/ref.rb', line 14

Ref = Struct.new(
  :service_name,
  :resource_type,
  :resource_location
)

#resource_typeSymbol

Returns The type of the resource, service-dependent.

Returns:

  • (Symbol)

    The type of the resource, service-dependent



14
15
16
17
18
# File 'lib/drum/model/ref.rb', line 14

Ref = Struct.new(
  :service_name,
  :resource_type,
  :resource_location
)

#service_nameString

Returns The name of the service.

Returns:

  • (String)

    The name of the service



14
15
16
17
18
# File 'lib/drum/model/ref.rb', line 14

Ref = Struct.new(
  :service_name,
  :resource_type,
  :resource_location
)