Class: Google::Apis::SolarV1::SavingsOverTime

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/solar_v1/classes.rb,
lib/google/apis/solar_v1/representations.rb,
lib/google/apis/solar_v1/representations.rb

Overview

Financial information that's shared between different financing methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SavingsOverTime

Returns a new instance of SavingsOverTime.



855
856
857
# File 'lib/google/apis/solar_v1/classes.rb', line 855

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#financially_viableBoolean Also known as: financially_viable?

Indicates whether this scenario is financially viable. Will be false for scenarios with poor financial viability (e.g., money-losing). Corresponds to the JSON property financiallyViable

Returns:

  • (Boolean)


827
828
829
# File 'lib/google/apis/solar_v1/classes.rb', line 827

def financially_viable
  @financially_viable
end

#present_value_of_savings_lifetimeGoogle::Apis::SolarV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property presentValueOfSavingsLifetime



833
834
835
# File 'lib/google/apis/solar_v1/classes.rb', line 833

def present_value_of_savings_lifetime
  @present_value_of_savings_lifetime
end

#present_value_of_savings_year20Google::Apis::SolarV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property presentValueOfSavingsYear20



838
839
840
# File 'lib/google/apis/solar_v1/classes.rb', line 838

def present_value_of_savings_year20
  @present_value_of_savings_year20
end

#savings_lifetimeGoogle::Apis::SolarV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property savingsLifetime



843
844
845
# File 'lib/google/apis/solar_v1/classes.rb', line 843

def savings_lifetime
  @savings_lifetime
end

#savings_year1Google::Apis::SolarV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property savingsYear1



848
849
850
# File 'lib/google/apis/solar_v1/classes.rb', line 848

def savings_year1
  @savings_year1
end

#savings_year20Google::Apis::SolarV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property savingsYear20



853
854
855
# File 'lib/google/apis/solar_v1/classes.rb', line 853

def savings_year20
  @savings_year20
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



860
861
862
863
864
865
866
867
# File 'lib/google/apis/solar_v1/classes.rb', line 860

def update!(**args)
  @financially_viable = args[:financially_viable] if args.key?(:financially_viable)
  @present_value_of_savings_lifetime = args[:present_value_of_savings_lifetime] if args.key?(:present_value_of_savings_lifetime)
  @present_value_of_savings_year20 = args[:present_value_of_savings_year20] if args.key?(:present_value_of_savings_year20)
  @savings_lifetime = args[:savings_lifetime] if args.key?(:savings_lifetime)
  @savings_year1 = args[:savings_year1] if args.key?(:savings_year1)
  @savings_year20 = args[:savings_year20] if args.key?(:savings_year20)
end