Class: YieldStarClient::Client

Inherits:
Object
  • Object
show all
Includes:
AmenityMethods, FloorPlanMethods, LeaseTermRentMethods, PropertyMethods, RentMethods, UnitMethods
Defined in:
lib/yield_star_client/client.rb

Overview

YieldStarClient::Client is the main object for connecting to the YieldStar AppExchange service. The interface strives to be SOAP-agnostic whenever possible; all inputs and outputs are pure ruby and no knowledge of SOAP is required in order to use the client.

Instance Method Summary collapse

Methods included from LeaseTermRentMethods

#get_lease_term_rent, #get_lease_term_rent_plus, #get_renewal_lease_term_rent

Methods included from Validations

#validate_client_name!, #validate_external_property_id!

Methods included from RentMethods

#get_available_units, #get_rent_summary

Methods included from AmenityMethods

#get_floor_plan_amenities, #get_unit_amenities

Methods included from UnitMethods

#get_unit, #get_units

Methods included from FloorPlanMethods

#get_floor_plan, #get_floor_plans

Methods included from PropertyMethods

#get_properties, #get_property, #get_property_parameters

Constructor Details

#initialize(options = {}) ⇒ Client

Initializes the client. All options are truly optional; if the option is not supplied to this method, then it will be set based on the YieldStarClient configuration.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • :username (String)

    The username for authenticating to the web service.

  • :password (String)

    The password for authenticating to the web service.

  • :endpoint (String)

    The address for connecting to the web service.

  • :namespace (String)

    The XML namespace to use for requests.

See Also:



41
42
43
# File 'lib/yield_star_client/client.rb', line 41

def initialize(options={})
  options.each { |k,v| self.send("#{k}=", v) if self.respond_to?("#{k}=") }
end