Class: MySolaredge::Request::TimeFrameEnergy
- Inherits:
-
AbstractRequest
- Object
- AbstractRequest
- MySolaredge::Request::TimeFrameEnergy
- Defined in:
- lib/my_solaredge/request/time_frame_energy.rb
Overview
Return the site total energy produced for a given period
Instance Method Summary collapse
Methods inherited from AbstractRequest
#base_params, #body, #call, #convert_date, #convert_datetime, #initialize, #klass_name, #method
Constructor Details
This class inherits a constructor from MySolaredge::Request::AbstractRequest
Instance Method Details
#endpoint ⇒ Object
7 8 9 |
# File 'lib/my_solaredge/request/time_frame_energy.rb', line 7 def endpoint "/site/#{@site_id}/timeFrameEnergy" end |
#params ⇒ Object
11 12 13 14 15 16 |
# File 'lib/my_solaredge/request/time_frame_energy.rb', line 11 def params { "startDate" => start_date, "endDate" => end_date, } end |