Module: Starapi

Defined in:
lib/starapi/soap_service_facade/execute_sp.rb,
lib/starapi.rb,
lib/starapi/version.rb,
lib/starapi/soap_service_facade/base.rb,
lib/starapi/soap_service_target/base.rb,
lib/generators/starapi/install_generator.rb,
lib/starapi/soap_service_facade/soap_error.rb,
lib/starapi/soap_service_target/price_quote.rb

Overview

Xml Structure #########################################################

#### Request ###

<ReadiSystem>
  <proc_type>GU_sp_DR_Price_Quote</proc_type>
  <entno>7827</entno>
  <supno>DUKE_OH</supno>
  <rev_type>R</rev_type>
  <request_date>2012-12-05</request_date>
</ReadiSystem>

### Response ###

<READiSystem> <GU_sp_DR_FF_Quote> <entno>0001</entno> <supno>FE_OHED</supno> <offer_desc>Ohio Electric - Residential</offer_desc> <rev_type>R</rev_type> <price_desc>Ohio Res - 1 Yr Fixed - Dec 12</price_desc> <enroll_eff_date>2012-12-01</enroll_eff_date> <enroll_exp_date>2012-12-31</enroll_exp_date> <offer_price>0.0965</offer_price > <price_uom>kWh</price_uom> <price_to_compare >0.0984</price_to_compare> <ptc_message>The Price to Compare for Ohio Electric was derived assuming a 750kWh average monthly consumption. Your actual Price to Compare could vary slightly based on your actual usage.</ptc_message> </GU_sp_DR_FF_Quote> </READiSystem>

Defined Under Namespace

Modules: Generators, SoapServiceFacade, SoapServiceTarget

Constant Summary collapse

VERSION =
"0.0.3"
@@namespace =
"http://www.example.com/RS/webservices/"
@@service_url =
'http://example/READiDataExchange/WSRSDataExchange.asmx'
@@user =
"user"
@@password =
"password"

Class Method Summary collapse

Class Method Details

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Starapi)

    the object that the method was called on



18
19
20
# File 'lib/starapi.rb', line 18

def setup
  yield self
end