Class: GraphqlTagPluck::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql_tag_pluck/config.rb

Constant Summary collapse

CONFIG_FILE =
File.expand_path(".graphqltagpluckconfig.yaml", Dir.pwd)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



14
15
16
# File 'lib/graphql_tag_pluck/config.rb', line 14

def initialize
  @options = {}
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/graphql_tag_pluck/config.rb', line 8

def options
  @options
end

Class Method Details

.loadObject



10
11
12
# File 'lib/graphql_tag_pluck/config.rb', line 10

def self.load
  new.load
end

Instance Method Details

#loadObject



18
19
20
21
# File 'lib/graphql_tag_pluck/config.rb', line 18

def load
  load_file(CONFIG_FILE)
  @options
end