Class: Hindbaer::Track
- Inherits:
-
Object
- Object
- Hindbaer::Track
- Defined in:
- lib/hindbaer/track.rb
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(fragment, session = nil) ⇒ Track
constructor
A new instance of Track.
- #name ⇒ Object
- #pan ⇒ Object
- #plugins ⇒ Object
- #regions ⇒ Object
Constructor Details
#initialize(fragment, session = nil) ⇒ Track
Returns a new instance of Track.
4 5 6 7 |
# File 'lib/hindbaer/track.rb', line 4 def initialize(fragment, session = nil) @doc = fragment @session = session end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
9 10 11 |
# File 'lib/hindbaer/track.rb', line 9 def session @session end |
Instance Method Details
#name ⇒ Object
11 12 13 |
# File 'lib/hindbaer/track.rb', line 11 def name @doc['Name'] end |
#pan ⇒ Object
15 16 17 |
# File 'lib/hindbaer/track.rb', line 15 def pan @doc['Pan'] end |