Class: APIQL::HashEntity
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
Methods inherited from Entity
attributes, inherited, #initialize, #render
Constructor Details
This class inherits a constructor from APIQL::Entity
Instance Method Details
#authorize!(*args) ⇒ Object
469 |
# File 'lib/apiql.rb', line 469 def (*args); end |
#get_field(field, params = nil) ⇒ Object
471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/apiql.rb', line 471 def get_field(field, params = nil) o = nil field.split('.').each do |name| if o.nil? o = object[name.to_sym] break if o.nil? else if o.respond_to? name o = o.public_send(name) else o = nil break end end end o end |