Sha256: 07780c70e29746b2eff45abfc6e2a032eecd338c6a9b0ccedaf3959f2e140b7c

Contents?: true

Size: 475 Bytes

Versions: 55

Compression:

Stored size: 475 Bytes

Contents

# *Flexirest:* Required parameters

If you want to specify that certain parameters are required for a specific call, you can specify them like:

```ruby
class Person < Flexirest::Base
  get :all, '/people', :requires => [:active]
end

@people = Person.all # raises Flexirest::MissingParametersException
@people = Person.all(active:false)
```


-----

[< Root elements](root-elements.md) | [Updating only changed/dirty attributes >](updating-only-changed-dirty-attributes.md)

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
flexirest-1.8.0 docs/required-parameters.md
flexirest-1.7.9 docs/required-parameters.md
flexirest-1.7.8 docs/required-parameters.md
flexirest-1.7.7 docs/required-parameters.md
flexirest-1.7.6 docs/required-parameters.md
flexirest-1.7.5 docs/required-parameters.md
flexirest-1.7.4 docs/required-parameters.md
flexirest-1.7.3 docs/required-parameters.md
flexirest-1.7.2 docs/required-parameters.md
flexirest-1.7.1 docs/required-parameters.md
flexirest-1.7.0 docs/required-parameters.md
flexirest-1.6.9 docs/required-parameters.md
flexirest-1.6.8 docs/required-parameters.md
flexirest-1.6.7 docs/required-parameters.md
flexirest-1.6.6 docs/required-parameters.md