Class: AteTracks::Structures::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/atetracks/structures.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#color1Object

Returns the value of attribute color1.



246
247
248
# File 'lib/atetracks/structures.rb', line 246

def color1
  @color1
end

#color2Object

Returns the value of attribute color2.



246
247
248
# File 'lib/atetracks/structures.rb', line 246

def color2
  @color2
end

#nameObject

Returns the value of attribute name.



246
247
248
# File 'lib/atetracks/structures.rb', line 246

def name
  @name
end