class G5FoundationClient::Location
Attributes
client[RW]
location_hash[RW]
Public Class Methods
new(attrs)
click to toggle source
# File lib/g5_foundation_client/models/location.rb, line 6 def initialize(attrs) self.client = attrs.delete(:client) || attrs.delete('client') self.location_hash = ActiveSupport::HashWithIndifferentAccess.new attrs.fetch(:location, attrs) end
Public Instance Methods
street_address()
click to toggle source
# File lib/g5_foundation_client/models/location.rb, line 44 def street_address return street_address_1 if street_address_2.blank? "#{street_address_1}\n#{street_address_2}" end