class FirstGivingApi::ApiResponse
Public Class Methods
new(result)
click to toggle source
attr_reader :organization_uuid,
:organization_type_id, :government_id, :parent_organization_uuid, :address_line_1, :address_line_2, :address_line_3, :address_line_full, :city, :region, :postal_code, :county, :country, :address_full, :phone_number, :area_code, :url, :category_code, :latitude, :longitude, :revoked
# File lib/first_giving_api/charity.rb, line 61 def initialize(result) # xml = Crack::XML.parse(result) # @organization_uuid = xml.at('OrganizationUuid').text # @organization_type_id = xml.at('OgranizationTypeId').text # @government_id = xml.at('GovernmentId').text # @parent_organization_uuid = xml.at('ParentOrganizationUuid').text # @address_line_1 = xml.at('AddressLine1').text # @address_line_2 = xml.at('AddressLine2').text # @address_line_3 = xml.at('AddressLine3').text # @address_line_full = xml.at('AddressLineFull').text # @city = xml.at('City').text # @region = xml.at('Region').text # @postal_code = xml.at('PostalCode').text # @county = xml.at('County').text # @country = xml.at('Country').text # @address_full = xml.at('AddressFull').text # @phone_number = xml.at('PhoneNumber').text # @area_code = xml.at('AreaCode').text # @url = xml.at('Url').text # @category_code = xml.at('CategoryCode').text # @latitude = xml.at('Latitude').text # @longitude = xml.at('Longitude').text # @revoked = xml.at('Revoked') end