Method: TechnicalAnalysis::TrixValue#to_hash

Defined in:
lib/technical_analysis/indicators/trix.rb

#to_hashHash

Returns the attributes as a hash.

Returns:

  • (Hash)

    the attributes as a hash



122
123
124
# File 'lib/technical_analysis/indicators/trix.rb', line 122

def to_hash
  { date_time: @date_time, trix: @trix }
end