Class: Zemanta::Fetcher::Cache::Response
- Inherits:
-
Object
- Object
- Zemanta::Fetcher::Cache::Response
- Defined in:
- lib/zemanta/fetcher/cache/response.rb
Instance Method Summary collapse
-
#initialize(data) ⇒ Response
constructor
A new instance of Response.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/zemanta/fetcher/cache/response.rb', line 5 def initialize(data) @data = data @created_at = Time.now end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/zemanta/fetcher/cache/response.rb', line 10 def to_s @data end |