Class: Swarker::Readers::ServiceReader
- Inherits:
-
Object
- Object
- Swarker::Readers::ServiceReader
- 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
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize(dir, subtree = nil) ⇒ ServiceReader
constructor
A new instance of ServiceReader.
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
#services ⇒ Object (readonly)
Returns the value of attribute services.
7 8 9 |
# File 'lib/swarker/readers/service_reader.rb', line 7 def services @services end |