Class: ACTV::Place

Inherits:
Base
  • Object
show all
Defined in:
lib/actv/place.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader

Constructor Details

This class inherits a constructor from ACTV::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ACTV::Base

Instance Attribute Details

#addressLine1TxtObject (readonly) Also known as: address1

Returns the value of attribute addressLine1Txt.



6
7
8
# File 'lib/actv/place.rb', line 6

def addressLine1Txt
  @addressLine1Txt
end

#addressLine2TxtObject (readonly) Also known as: address2

Returns the value of attribute addressLine2Txt.



6
7
8
# File 'lib/actv/place.rb', line 6

def addressLine2Txt
  @addressLine2Txt
end

#cityNameObject (readonly) Also known as: city

Returns the value of attribute cityName.



6
7
8
# File 'lib/actv/place.rb', line 6

def cityName
  @cityName
end

#countryCodeObject (readonly) Also known as: country_code

Returns the value of attribute countryCode.



6
7
8
# File 'lib/actv/place.rb', line 6

def countryCode
  @countryCode
end

#countryNameObject (readonly) Also known as: country

Returns the value of attribute countryName.



6
7
8
# File 'lib/actv/place.rb', line 6

def countryName
  @countryName
end

#directionsTxtObject (readonly)

Returns the value of attribute directionsTxt.



6
7
8
# File 'lib/actv/place.rb', line 6

def directionsTxt
  @directionsTxt
end

#latitudeObject (readonly)

Returns the value of attribute latitude.



6
7
8
# File 'lib/actv/place.rb', line 6

def latitude
  @latitude
end

#localityNameObject (readonly) Also known as: locality

Returns the value of attribute localityName.



6
7
8
# File 'lib/actv/place.rb', line 6

def localityName
  @localityName
end

#longitudeObject (readonly)

Returns the value of attribute longitude.



6
7
8
# File 'lib/actv/place.rb', line 6

def longitude
  @longitude
end

#placeDscObject (readonly) Also known as: description

Returns the value of attribute placeDsc.



6
7
8
# File 'lib/actv/place.rb', line 6

def placeDsc
  @placeDsc
end

#placeGuidObject (readonly) Also known as: id

Returns the value of attribute placeGuid.



6
7
8
# File 'lib/actv/place.rb', line 6

def placeGuid
  @placeGuid
end

#placeNameObject (readonly) Also known as: name

Returns the value of attribute placeName.



6
7
8
# File 'lib/actv/place.rb', line 6

def placeName
  @placeName
end

#placeUrlAdrObject (readonly) Also known as: url

Returns the value of attribute placeUrlAdr.



6
7
8
# File 'lib/actv/place.rb', line 6

def placeUrlAdr
  @placeUrlAdr
end

#postalCodeObject (readonly) Also known as: postal_code

Returns the value of attribute postalCode.



6
7
8
# File 'lib/actv/place.rb', line 6

def postalCode
  @postalCode
end

#stateProvinceCodeObject (readonly) Also known as: state

Returns the value of attribute stateProvinceCode.



6
7
8
# File 'lib/actv/place.rb', line 6

def stateProvinceCode
  @stateProvinceCode
end

Instance Method Details

#has_lat_long?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/actv/place.rb', line 23

def has_lat_long?
  latitude && longitude && latitude != "" && longitude != ""
end