Class: Slodd::Local

Inherits:
Object
  • Object
show all
Defined in:
lib/slodd/local.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ Local

Returns a new instance of Local.



6
7
8
# File 'lib/slodd/local.rb', line 6

def initialize(attrs)
  self.path = attrs.fetch(:path)
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/slodd/local.rb', line 4

def path
  @path
end

Instance Method Details

#schemaObject



10
11
12
# File 'lib/slodd/local.rb', line 10

def schema
  File.read(path)
end