Sha256: 3f177023b71437d72742a128ce50ef1508c8a11746171e87ddd24f39d435fa76
Contents?: true
Size: 1.01 KB
Versions: 28
Compression:
Stored size: 1.01 KB
Contents
module Unit class AtmLocation < APIResource path '/atm-locations' attribute :network, Types::String attribute :address, Types::Address attribute :coordinates, Types::Coordinates attribute :distance, Types::Float attribute :location_name, Types::String attribute :accept_deposits, Types::Boolean attribute :surcharge_free, Types::Boolean include ResourceOperations::List def self.list_by_coordinates(latitude:, longitude:, search_radius:) list( where: { coordinates: { longitude: longitude, latitude: latitude }.to_json, searchRadius: search_radius } ) end def self.list_by_postal_code(postal_code:, search_radius:) list( where: { postal_code: postal_code, searchRadius: search_radius } ) end def self.list_by_address(address:, search_radius:) list( where: { postal_code: address, searchRadius: search_radius } ) end end end
Version data entries
28 entries across 28 versions & 1 rubygems