Class: Swarker::Readers::ServiceReader

Inherits:
Object
  • Object
show all
Defined in:
lib/swarker/readers/service_reader.rb

Constant Summary collapse

SERVICE_EXT =
'.service.yml'.freeze
DEFAULT_PORT =
80
DEFINITIONS_DIR =
'definitions'.freeze
PATHS_DIR =
'api'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dir, subtree = nil) ⇒ ServiceReader

Returns a new instance of ServiceReader.



14
15
16
17
18
19
# File 'lib/swarker/readers/service_reader.rb', line 14

def initialize(dir, subtree = nil)
  @dir     = dir
  @subtree = subtree

  @services = read_services
end

Instance Attribute Details

#servicesObject (readonly)

Returns the value of attribute services.



7
8
9
# File 'lib/swarker/readers/service_reader.rb', line 7

def services
  @services
end