Class: WixAnswers::Models::Group

Inherits:
Base
  • Object
show all
Defined in:
lib/wixanswers/models/user/group.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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

#membersObject



16
17
18
# File 'lib/wixanswers/models/user/group.rb', line 16

def members
  @members ||= (self.attrs[:members] || []).map {|member| Agent.new(member)}
end