Class: Elastify::Configurators::Model
- Inherits:
-
Object
- Object
- Elastify::Configurators::Model
- Defined in:
- lib/elastify/configurators/model.rb
Instance Attribute Summary collapse
-
#opt_decode ⇒ Object
Returns the value of attribute opt_decode.
-
#opt_encode ⇒ Object
Returns the value of attribute opt_encode.
-
#opt_index ⇒ Object
Returns the value of attribute opt_index.
-
#opt_mapping ⇒ Object
Returns the value of attribute opt_mapping.
-
#opt_scroll_timeout ⇒ Object
Returns the value of attribute opt_scroll_timeout.
-
#opt_type ⇒ Object
Returns the value of attribute opt_type.
Instance Method Summary collapse
- #decode(&block) ⇒ Object
- #encode(&block) ⇒ Object
- #index(index) ⇒ Object
- #mapping(&block) ⇒ Object
- #scroll_timeout(scroll_timeout) ⇒ Object
- #type(type) ⇒ Object
Instance Attribute Details
#opt_decode ⇒ Object
Returns the value of attribute opt_decode.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_decode @opt_decode end |
#opt_encode ⇒ Object
Returns the value of attribute opt_encode.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_encode @opt_encode end |
#opt_index ⇒ Object
Returns the value of attribute opt_index.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_index @opt_index end |
#opt_mapping ⇒ Object
Returns the value of attribute opt_mapping.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_mapping @opt_mapping end |
#opt_scroll_timeout ⇒ Object
Returns the value of attribute opt_scroll_timeout.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_scroll_timeout @opt_scroll_timeout end |
#opt_type ⇒ Object
Returns the value of attribute opt_type.
5 6 7 |
# File 'lib/elastify/configurators/model.rb', line 5 def opt_type @opt_type end |
Instance Method Details
#decode(&block) ⇒ Object
23 24 25 |
# File 'lib/elastify/configurators/model.rb', line 23 def decode(&block) @opt_decode = block if block_given? end |
#encode(&block) ⇒ Object
19 20 21 |
# File 'lib/elastify/configurators/model.rb', line 19 def encode(&block) @opt_encode = block if block_given? end |
#index(index) ⇒ Object
7 8 9 |
# File 'lib/elastify/configurators/model.rb', line 7 def index(index) @opt_index = index end |
#mapping(&block) ⇒ Object
15 16 17 |
# File 'lib/elastify/configurators/model.rb', line 15 def mapping(&block) @opt_mapping = block.call() if block_given? end |
#scroll_timeout(scroll_timeout) ⇒ Object
27 28 29 |
# File 'lib/elastify/configurators/model.rb', line 27 def scroll_timeout(scroll_timeout) @opt_scroll_timeout = scroll_timeout end |
#type(type) ⇒ Object
11 12 13 |
# File 'lib/elastify/configurators/model.rb', line 11 def type(type) @opt_type = type end |