Class: Epiphy::Repository::Configuration Private

Inherits:
Object
  • Object
show all
Defined in:
lib/epiphy/repository/configuration.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Configuration class for repository.

Storing Epiphy::Adapter::RethinkDB instance, and RethinkDB run option.

Examples:

adapter = Epiphy::Adapter::Rethinkdb.new connection
Epiphy::Repository.configure do |config|
  config.adapter = adapter
end

Since:

  • 0.0.1

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.0.1



18
19
20
# File 'lib/epiphy/repository/configuration.rb', line 18

def adapter
  @adapter
end

#run_optionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.0.1



19
20
21
# File 'lib/epiphy/repository/configuration.rb', line 19

def run_option
  @run_option
end

Instance Method Details

#initalizeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 0.0.1



21
22
23
24
25
26
27
28
29
30
# File 'lib/epiphy/repository/configuration.rb', line 21

def initalize
  @run_option = {
    use_outdated: false,
    time_format: 'native',
    profile: false,
    durability: 'hard',
    group_format: 'native',
    no_reply: false
  }
end