Class: ITGlue::Client::PathProcessor
- Inherits:
-
Object
- Object
- ITGlue::Client::PathProcessor
- Defined in:
- lib/itglue/client/path_processor.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(asset_type, options = {}) ⇒ PathProcessor
constructor
A new instance of PathProcessor.
- #path ⇒ Object
Constructor Details
#initialize(asset_type, options = {}) ⇒ PathProcessor
Returns a new instance of PathProcessor.
12 13 14 15 16 |
# File 'lib/itglue/client/path_processor.rb', line 12 def initialize(asset_type, = {}) @asset_type = asset_type @options = @path_array = [] end |
Class Method Details
.process(asset_type, options = {}) ⇒ Object
4 5 6 |
# File 'lib/itglue/client/path_processor.rb', line 4 def self.process(asset_type, = {}) self.new(asset_type, ).path end |
Instance Method Details
#path ⇒ Object
18 19 20 |
# File 'lib/itglue/client/path_processor.rb', line 18 def path @path ||= path_array.unshift('').join('/') end |