Class: Safrano::Select
- Inherits:
-
SelectBase
- Object
- SelectBase
- Safrano::Select
- Defined in:
- lib/odata/select.rb
Overview
single select
Constant Summary collapse
- COMASPLIT =
/\s*,\s*/.freeze
Constants inherited from SelectBase
Instance Attribute Summary collapse
-
#props ⇒ Object
readonly
Returns the value of attribute props.
Instance Method Summary collapse
-
#initialize(selstr, model) ⇒ Select
constructor
A new instance of Select.
- #parse_error? ⇒ Boolean
Methods inherited from SelectBase
Constructor Details
Instance Attribute Details
#props ⇒ Object (readonly)
Returns the value of attribute props.
42 43 44 |
# File 'lib/odata/select.rb', line 42 def props @props end |
Instance Method Details
#parse_error? ⇒ Boolean
50 51 52 |
# File 'lib/odata/select.rb', line 50 def parse_error? (invalids = @model.find_invalid_props(props.to_set)) ? BadRequestSelectInvalidProps.new(@model, invalids) : Contract::OK end |