Class: WixAnswers::Models::Agent

Inherits:
User
  • Object
show all
Defined in:
lib/wixanswers/models/user/agent.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from User

#validate!

Methods inherited from Base

#initialize, #method_missing, #validate!, #validate_schema!

Constructor Details

This class inherits a constructor from WixAnswers::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class WixAnswers::Models::Base

Instance Method Details

#managerObject



30
31
32
# File 'lib/wixanswers/models/user/agent.rb', line 30

def manager
  @_manager ||= Agent.new(self.attrs[:manager] || {})
end