Class: Pincers::Core::Replicas::Link
- Inherits:
-
Object
- Object
- Pincers::Core::Replicas::Link
- Defined in:
- lib/pincers/core/replicas/link.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
- #fetch(_http_client = nil) ⇒ Object
-
#initialize(_backend, _element) ⇒ Link
constructor
A new instance of Link.
Constructor Details
Instance Attribute Details
#ref ⇒ Object (readonly)
Returns the value of attribute ref.
6 7 8 |
# File 'lib/pincers/core/replicas/link.rb', line 6 def ref @ref end |
Instance Method Details
#fetch(_http_client = nil) ⇒ Object
13 14 15 16 |
# File 'lib/pincers/core/replicas/link.rb', line 13 def fetch(_http_client=nil) client = _http_client || @backend.as_http_client client.get(@ref) end |