lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.1.3 vs lib/ruby-hackernews/domain/entry/entry.rb in ruby-hackernews-1.2.0
- old
+ new
@@ -55,11 +55,15 @@
def write_comment(text)
return CommentService.new.write_comment(@comments_info.page, text)
end
- def self.submit(*args)
- return EntryService.new.submit(*args)
+ def self.submit(title, url)
+ return EntryService.new.submit(title, url)
+ end
+
+ def self.ask(title, text)
+ return EntryService.new.ask(title, text)
end
def upvote
return VotingService.new.vote(@voting.upvote)
end