Class: Bitferry::Endpoint::Local
- Inherits:
-
Bitferry::Endpoint
- Object
- Bitferry::Endpoint
- Bitferry::Endpoint::Local
- Defined in:
- lib/bitferry.rb
Constant Summary
Constants inherited from Bitferry::Endpoint
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #externalize ⇒ Object
- #generation ⇒ Object
-
#initialize(root) ⇒ Local
constructor
A new instance of Local.
- #intact? ⇒ Boolean
- #refers?(volume) ⇒ Boolean
- #restore(hash) ⇒ Object
- #show_status ⇒ Object
Methods inherited from Bitferry::Endpoint
Constructor Details
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
1322 1323 1324 |
# File 'lib/bitferry.rb', line 1322 def root @root end |
Instance Method Details
#externalize ⇒ Object
1331 1332 1333 1334 1335 1336 |
# File 'lib/bitferry.rb', line 1331 def externalize { endpoint: :local, root: root } end |
#generation ⇒ Object
1348 |
# File 'lib/bitferry.rb', line 1348 def generation = 0 |
#intact? ⇒ Boolean
1342 |
# File 'lib/bitferry.rb', line 1342 def intact? = true |
#refers?(volume) ⇒ Boolean
1345 |
# File 'lib/bitferry.rb', line 1345 def refers?(volume) = false |
#restore(hash) ⇒ Object
1328 |
# File 'lib/bitferry.rb', line 1328 def restore(hash) = initialize(hash.fetch(:root)) |
#show_status ⇒ Object
1339 |
# File 'lib/bitferry.rb', line 1339 def show_status = root.to_s |