Sha256: 1a97e14f3abc3e00747d2a27a92f77c4435ef7baf5df4da4272d02ae93d3077d

Contents?: true

Size: 570 Bytes

Versions: 13

Compression:

Stored size: 570 Bytes

Contents

# Coordinate

#### Rules

```ruby
# 1. Pattern
:latitude  => -90.0..90.0             #=> Value must be a number in this range
:longitude => -180.0..180.0           #=> Value must be a number in this range
:pair      => [:latitude, :longitude] #=> Array of corresponding range value
```

#### Options

Option | Type | Available | Default
--- | --- | --- | ---
boundary | symbol | latitude, longitude, pair | pair

#### Usage

```ruby
class User < ActiveRecord::Base

  validates :input0, coordinate: true
  validates :input1, coordinate: { boundary: :latitude }

end
```

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
lite-validators-1.8.0 docs/COORDINATE.md
lite-validators-1.7.2 docs/COORDINATE.md
lite-validators-1.7.1 docs/COORDINATE.md
lite-validators-1.7.0 docs/COORDINATE.md
lite-validators-1.6.0 docs/COORDINATE.md
lite-validators-1.5.0 docs/COORDINATE.md
lite-validators-1.4.0 docs/COORDINATE.md
lite-validators-1.3.2 docs/COORDINATE.md
lite-validators-1.3.1 docs/COORDINATE.md
lite-validators-1.3.0 docs/COORDINATE.md
lite-validators-1.2.0 docs/COORDINATE.md
lite-validators-1.1.2 docs/COORDINATE.md
lite-validators-1.1.1 docs/COORDINATE.md