Method: StackExchange::StackOverflow::Comment.parse
- Defined in:
- lib/pilha/stack_overflow/comment.rb
.parse(response) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/pilha/stack_overflow/comment.rb', line 31 def parse(response) response['comments'].each do |comment| parse_with_class(comment, 'owner', User) parse_with_class(comment, 'reply_to_user', User) end parse_with_class(response, 'comments', Comment) OpenStruct.new response end |