Class: Groonga::Command::ReferenceAcquire

Inherits:
Base
  • Object
show all
Defined in:
lib/groonga/command/reference-acquire.rb

Overview

A command class that represents reference_acquire command.

Since:

  • 1.4.9

Instance Attribute Summary

Attributes inherited from Base

#arguments, #command_name, #original_format, #original_source, #path_prefix

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, #[], #[]=, #command_format?, #initialize, #key?, #name, #output_type, #request_id, #to_command_format, #to_elasticsearch_format, #to_s, #to_uri_format, #uri_format?

Constructor Details

This class inherits a constructor from Groonga::Command::Base

Class Method Details

.command_nameObject

Since:

  • 1.4.9



26
27
28
# File 'lib/groonga/command/reference-acquire.rb', line 26

def command_name
  "reference_acquire"
end

.parameter_namesObject

Since:

  • 1.4.9



30
31
32
33
34
35
# File 'lib/groonga/command/reference-acquire.rb', line 30

def parameter_names
  [
    :target_name,
    :recursive,
  ]
end

Instance Method Details

#recursiveString

Returns recursive parameter value.

Returns:

  • (String)

    recursive parameter value.

Since:

  • 1.4.9



50
51
52
# File 'lib/groonga/command/reference-acquire.rb', line 50

def recursive
  self[:recursive]
end

#recursive?Boolean

Returns Whether recursive parameter value isn't no.

Returns:

  • (Boolean)

    Whether recursive parameter value isn't no.

Since:

  • 1.4.9



57
58
59
# File 'lib/groonga/command/reference-acquire.rb', line 57

def recursive?
  recursive != "no"
end

#recursive_dependent?Boolean

Returns recursive parameter value.

Returns:

  • (Boolean)

    recursive parameter value.

Since:

  • 1.4.9



64
65
66
# File 'lib/groonga/command/reference-acquire.rb', line 64

def recursive_dependent?
  recursive == "dependent"
end

#target_nameString

Returns target_name parameter value.

Returns:

  • (String)

    target_name parameter value.

Since:

  • 1.4.9



43
44
45
# File 'lib/groonga/command/reference-acquire.rb', line 43

def target_name
  self[:target_name]
end