Class: Lumiere::Fetcher
- Inherits:
-
Object
- Object
- Lumiere::Fetcher
- Defined in:
- lib/fetcher.rb
Instance Method Summary collapse
-
#initialize(context) ⇒ Fetcher
constructor
A new instance of Fetcher.
- #remote_attributes ⇒ Object
Constructor Details
#initialize(context) ⇒ Fetcher
Returns a new instance of Fetcher.
6 7 8 9 |
# File 'lib/fetcher.rb', line 6 def initialize(context) @api_url = context.api_url @unpack_into = context.unpack_into end |
Instance Method Details
#remote_attributes ⇒ Object
11 12 13 14 15 16 |
# File 'lib/fetcher.rb', line 11 def remote_attributes unless request_hash[@api_url] request_hash[@api_url] = unpack end request_hash[@api_url] end |