Class: Elastify::Configurators::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/elastify/configurators/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#opt_decodeObject

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_encodeObject

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_indexObject

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_mappingObject

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_timeoutObject

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_typeObject

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