Module: BoaVista::Response::Layout::Default
- Included in:
- Layout138, Layout221, Layout249, Layout282, Layout283, Layout285, Layout353, Layout354, Layout901, Layout999
- Defined in:
- lib/boa_vista/response/layout/default.rb
Constant Summary collapse
- DEFAULT_ATTRIBUTES =
{ transaction: { range: 0..7 }, version: { range: 8..9 }, reserved_requester: { range: 10..19 }, reserved_boa_vista: { range: 20..39 }, code: { range: 40..47 }, query: { range: 48..55 }, query_version: { range: 56..57 }, response_type: { range: 58..58 }, response_code: { range: 59..59 }, query_number: { range: 60..66 }, text_size: { range: 67..70 }, record_size: { range: 71..73 }, record_type: { range: 74..76 } }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.range_of(attribute) ⇒ Object
37 38 39 |
# File 'lib/boa_vista/response/layout/default.rb', line 37 def range_of(attribute) DEFAULT_ATTRIBUTES[attribute][:range] end |
Instance Method Details
#default_attributes ⇒ Object
21 22 23 |
# File 'lib/boa_vista/response/layout/default.rb', line 21 def default_attributes DEFAULT_ATTRIBUTES end |
#has_conditions? ⇒ Boolean
32 33 34 |
# File 'lib/boa_vista/response/layout/default.rb', line 32 def has_conditions? layout_with_conditions.include?(self) end |