Class: Zemanta::Fetcher::Cache::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/zemanta/fetcher/cache/response.rb

Instance Method Summary collapse

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_sObject



10
11
12
# File 'lib/zemanta/fetcher/cache/response.rb', line 10

def to_s
  @data
end