Class: Trifle::Docs::Harvester::Conveyor
- Inherits:
-
Object
- Object
- Trifle::Docs::Harvester::Conveyor
- Defined in:
- lib/trifle/docs/harvester.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(file:, url:, namespace:) ⇒ Conveyor
constructor
A new instance of Conveyor.
Constructor Details
#initialize(file:, url:, namespace:) ⇒ Conveyor
76 77 78 79 80 |
# File 'lib/trifle/docs/harvester.rb', line 76 def initialize(file:, url:, namespace:) @file = file @url = url @namespace = namespace end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
74 75 76 |
# File 'lib/trifle/docs/harvester.rb', line 74 def file @file end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
74 75 76 |
# File 'lib/trifle/docs/harvester.rb', line 74 def namespace @namespace end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
74 75 76 |
# File 'lib/trifle/docs/harvester.rb', line 74 def url @url end |
Instance Method Details
#data ⇒ Object
82 83 84 |
# File 'lib/trifle/docs/harvester.rb', line 82 def data @data ||= ::File.read(file) end |