Class: AteTracks::Structures::Set
- Inherits:
-
Object
- Object
- AteTracks::Structures::Set
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#at_beginning ⇒ Object
Returns the value of attribute at_beginning.
-
#at_end ⇒ Object
Returns the value of attribute at_end.
-
#at_last_track ⇒ Object
Returns the value of attribute at_last_track.
-
#skip_allowed ⇒ Object
Returns the value of attribute skip_allowed.
-
#track ⇒ Object
Returns the value of attribute track.
Instance Method Summary collapse
-
#initialize(data) ⇒ Set
constructor
A new instance of Set.
Constructor Details
#initialize(data) ⇒ Set
Returns a new instance of Set.
40 41 42 43 44 45 46 47 |
# File 'lib/atetracks/structures.rb', line 40 def initialize(data) return nil if data.nil? @at_beginning = data['at_beginning'] @at_end = data['at_end'] @at_last_track = data['at_last_track'] @skip_allowed = data['skip_allowed'] @track = Track.new(data['track']) end |
Instance Attribute Details
#at_beginning ⇒ Object
Returns the value of attribute at_beginning.
38 39 40 |
# File 'lib/atetracks/structures.rb', line 38 def at_beginning @at_beginning end |
#at_end ⇒ Object
Returns the value of attribute at_end.
38 39 40 |
# File 'lib/atetracks/structures.rb', line 38 def at_end @at_end end |
#at_last_track ⇒ Object
Returns the value of attribute at_last_track.
38 39 40 |
# File 'lib/atetracks/structures.rb', line 38 def at_last_track @at_last_track end |
#skip_allowed ⇒ Object
Returns the value of attribute skip_allowed.
38 39 40 |
# File 'lib/atetracks/structures.rb', line 38 def skip_allowed @skip_allowed end |
#track ⇒ Object
Returns the value of attribute track.
38 39 40 |
# File 'lib/atetracks/structures.rb', line 38 def track @track end |