Class: Cmus::Controller::Status::Song
- Inherits:
-
Object
- Object
- Cmus::Controller::Status::Song
- Defined in:
- lib/cmus/controller/status.rb
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#file ⇒ Object
Returns the value of attribute file.
-
#position ⇒ Object
Returns the value of attribute position.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(controller) ⇒ Song
constructor
A new instance of Song.
- #track ⇒ Object
Constructor Details
#initialize(controller) ⇒ Song
Returns a new instance of Song.
20 21 22 |
# File 'lib/cmus/controller/status.rb', line 20 def initialize (controller) @tags = OpenStruct.new end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
17 18 19 |
# File 'lib/cmus/controller/status.rb', line 17 def controller @controller end |
#duration ⇒ Object
Returns the value of attribute duration.
18 19 20 |
# File 'lib/cmus/controller/status.rb', line 18 def duration @duration end |
#file ⇒ Object
Returns the value of attribute file.
18 19 20 |
# File 'lib/cmus/controller/status.rb', line 18 def file @file end |
#position ⇒ Object
Returns the value of attribute position.
18 19 20 |
# File 'lib/cmus/controller/status.rb', line 18 def position @position end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
17 18 19 |
# File 'lib/cmus/controller/status.rb', line 17 def @tags end |
Instance Method Details
#track ⇒ Object
30 31 32 |
# File 'lib/cmus/controller/status.rb', line 30 def track .tracknumber end |