Class: Innkeeper::Resolvers::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/innkeeper/resolvers/abstract.rb

Direct Known Subclasses

Database, Schema

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_config) ⇒ Abstract

Returns a new instance of Abstract.



6
7
8
# File 'lib/innkeeper/resolvers/abstract.rb', line 6

def initialize(init_config)
  @init_config = init_config.freeze
end

Instance Attribute Details

#init_configObject

Returns the value of attribute init_config.



4
5
6
# File 'lib/innkeeper/resolvers/abstract.rb', line 4

def init_config
  @init_config
end

Instance Method Details

#resolveObject



10
11
12
# File 'lib/innkeeper/resolvers/abstract.rb', line 10

def resolve
  raise "Cannot use abstract class directly"
end