Class: TechnicalAnalysis::FiValue
- Inherits:
 - 
      Object
      
        
- Object
 - TechnicalAnalysis::FiValue
 
 
- Defined in:
 - lib/technical_analysis/indicators/fi.rb
 
Overview
The value class to be returned by calculations
Instance Attribute Summary collapse
- 
  
    
      #date_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The date_time of the obversation as it was provided.
 - 
  
    
      #fi  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The fi calculation value.
 
Instance Method Summary collapse
- 
  
    
      #initialize(date_time: nil, fi: nil)  ⇒ FiValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of FiValue.
 - 
  
    
      #to_hash  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
The attributes as a hash.
 
Constructor Details
#initialize(date_time: nil, fi: nil) ⇒ FiValue
Returns a new instance of FiValue.
      84 85 86 87  | 
    
      # File 'lib/technical_analysis/indicators/fi.rb', line 84 def initialize(date_time: nil, fi: nil) @date_time = date_time @fi = fi end  | 
  
Instance Attribute Details
#date_time ⇒ String
Returns the date_time of the obversation as it was provided.
      79 80 81  | 
    
      # File 'lib/technical_analysis/indicators/fi.rb', line 79 def date_time @date_time end  | 
  
#fi ⇒ Float
Returns the fi calculation value.
      82 83 84  | 
    
      # File 'lib/technical_analysis/indicators/fi.rb', line 82 def fi @fi end  | 
  
Instance Method Details
#to_hash ⇒ Hash
Returns the attributes as a hash.
      90 91 92  | 
    
      # File 'lib/technical_analysis/indicators/fi.rb', line 90 def to_hash { date_time: @date_time, fi: @fi } end  |