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.
1373 1374 1375 |
# File 'lib/bitferry.rb', line 1373 def root @root end |
Instance Method Details
#externalize ⇒ Object
1382 1383 1384 1385 1386 1387 |
# File 'lib/bitferry.rb', line 1382 def externalize { endpoint: :local, root: root } end |
#generation ⇒ Object
1399 |
# File 'lib/bitferry.rb', line 1399 def generation = 0 |
#intact? ⇒ Boolean
1393 |
# File 'lib/bitferry.rb', line 1393 def intact? = true |
#refers?(volume) ⇒ Boolean
1396 |
# File 'lib/bitferry.rb', line 1396 def refers?(volume) = false |
#restore(hash) ⇒ Object
1379 |
# File 'lib/bitferry.rb', line 1379 def restore(hash) = initialize(hash.fetch(:root)) |
#show_status ⇒ Object
1390 |
# File 'lib/bitferry.rb', line 1390 def show_status = root.to_s |