Class: AteTracks::Structures::Filter
- Inherits:
-
Object
- Object
- AteTracks::Structures::Filter
- Defined in:
- lib/atetracks/structures.rb
Instance Attribute Summary collapse
-
#color1 ⇒ Object
Returns the value of attribute color1.
-
#color2 ⇒ Object
Returns the value of attribute color2.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(data) ⇒ Filter
Returns a new instance of Filter.
248 249 250 251 252 253 |
# File 'lib/atetracks/structures.rb', line 248 def initialize(data) return nil if data.nil? @color1 = data['color1'] @color2 = data['color2'] @name = data['name'] end |
Instance Attribute Details
#color1 ⇒ Object
Returns the value of attribute color1.
246 247 248 |
# File 'lib/atetracks/structures.rb', line 246 def color1 @color1 end |
#color2 ⇒ Object
Returns the value of attribute color2.
246 247 248 |
# File 'lib/atetracks/structures.rb', line 246 def color2 @color2 end |
#name ⇒ Object
Returns the value of attribute name.
246 247 248 |
# File 'lib/atetracks/structures.rb', line 246 def name @name end |