lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.2.0 vs lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.2.1
- old
+ new
@@ -35,9 +35,13 @@
def self.jobs(pages = 1)
return EntryService.new.get_jobs(pages)
end
+ def self.find(id)
+ return EntryService.new.find_by_id(id)
+ end
+
def time
return @time.time
end
def id