Class: Infobar::Trend

Inherits:
Object show all
Defined in:
lib/infobar/trend.rb

Instance Method Summary collapse

Constructor Details

#initialize(values, symbols: %i[ ↘ → ↗ ])) ⇒ Trend

Returns a new instance of Trend.



2
3
4
5
6
# File 'lib/infobar/trend.rb', line 2

def initialize(values, symbols: %i[    ])
  @values  = values
  @symbols = symbols
  @string  = arrow
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/infobar/trend.rb', line 8

def to_s
  @string
end