Class: Gliffy::TestaccountParser

Inherits:
BaseParser show all
Defined in:
lib/gliffy/response.rb

Overview

Parses the results from the test account request

Class Method Summary collapse

Methods inherited from BaseParser

add_boolean, add_date, add_int, as_array

Class Method Details

.from_http_response(root) ⇒ Object

:nodoc:



241
242
243
244
245
246
247
248
# File 'lib/gliffy/response.rb', line 241

def self.from_http_response(root)
  root = root['testAccount']
  add_int(root,'id','account_id')
  add_int(root,'max_users')
  add_boolean(root,'terms')
  add_date(root,'expiration_date')
  super(root)
end