Class: Google::Apis::SolarV1::FinancedPurchaseSavings

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

Cost and benefit of using a loan to buy a particular configuration of solar panels with a particular electricity usage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FinancedPurchaseSavings

Returns a new instance of FinancedPurchaseSavings.



355
356
357
# File 'lib/google/apis/solar_v1/classes.rb', line 355

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

Instance Attribute Details

#annual_loan_paymentGoogle::Apis::SolarV1::Money

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



338
339
340
# File 'lib/google/apis/solar_v1/classes.rb', line 338

def annual_loan_payment
  @annual_loan_payment
end

#loan_interest_rateFloat

The interest rate on loans assumed in this set of calculations. Corresponds to the JSON property loanInterestRate

Returns:

  • (Float)


343
344
345
# File 'lib/google/apis/solar_v1/classes.rb', line 343

def loan_interest_rate
  @loan_interest_rate
end

#rebate_valueGoogle::Apis::SolarV1::Money

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



348
349
350
# File 'lib/google/apis/solar_v1/classes.rb', line 348

def rebate_value
  @rebate_value
end

#savingsGoogle::Apis::SolarV1::SavingsOverTime

Financial information that's shared between different financing methods. Corresponds to the JSON property savings



353
354
355
# File 'lib/google/apis/solar_v1/classes.rb', line 353

def savings
  @savings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
364
365
# File 'lib/google/apis/solar_v1/classes.rb', line 360

def update!(**args)
  @annual_loan_payment = args[:annual_loan_payment] if args.key?(:annual_loan_payment)
  @loan_interest_rate = args[:loan_interest_rate] if args.key?(:loan_interest_rate)
  @rebate_value = args[:rebate_value] if args.key?(:rebate_value)
  @savings = args[:savings] if args.key?(:savings)
end