Class: Halchemy::Follower
- Inherits:
-
Object
- Object
- Halchemy::Follower
- Defined in:
- lib/halchemy/follower.rb
Overview
Provides the way to navigate from a resource by following to a link relation
Instance Method Summary collapse
-
#initialize(api, resource) ⇒ Follower
constructor
A new instance of Follower.
- #to(rel) ⇒ Object
Constructor Details
#initialize(api, resource) ⇒ Follower
Returns a new instance of Follower.
6 7 8 9 |
# File 'lib/halchemy/follower.rb', line 6 def initialize(api, resource) @api = api @resource = resource end |