Class: GoApiClient::Parsers::User
- Inherits:
-
Object
- Object
- GoApiClient::Parsers::User
- Defined in:
- lib/go_api_client/parsers/user_parser.rb
Class Method Summary collapse
Class Method Details
.parse(root) ⇒ Object
5 6 7 8 |
# 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 |