Sha256: 3809851577442ec57e213ee621fb769276a148feba7c0f5b5569760f3aba628a

Contents?: true

Size: 572 Bytes

Versions: 9

Compression:

Stored size: 572 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 :input_0, coordinate: true
  validates :input_1, coordinate: { boundary: :latitude }

end
```

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lite-validators-1.1.0 docs/COORDINATE.md
lite-validators-1.0.7 docs/COORDINATE.md
lite-validators-1.0.6 docs/COORDINATE.md
lite-validators-1.0.5 docs/COORDINATE.md
lite-validators-1.0.4 docs/COORDINATE.md
lite-validators-1.0.3 docs/COORDINATE.md
lite-validators-1.0.2 docs/COORDINATE.md
lite-validators-1.0.1 docs/COORDINATE.md
lite-validators-1.0.0 docs/COORDINATE.md