class GoApiClient::Parsers::User

Public Class Methods

parse(root) click to toggle source
# File lib/go_api_client/parsers/user_parser.rb, line 5
def parse(root)
  _, name, email = *root.content.match(/(.*) <(.+?)>/)
  GoApiClient::Domain::User.new(name, email)
end