Class: GroupModel
- Inherits:
-
Object
- Object
- GroupModel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/group_manager_model_types.rb
Constant Summary collapse
- ID =
1
- NAME =
2
- OWNERID =
3
- DESCRIPTION =
4
- MEMBERS =
5
- ADMINS =
6
- FIELDS =
{ ID => {:type => ::Thrift::Types::STRING, :name => 'id', :optional => true}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, OWNERID => {:type => ::Thrift::Types::STRING, :name => 'ownerId', :optional => true}, DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true}, MEMBERS => {:type => ::Thrift::Types::LIST, :name => 'members', :element => {:type => ::Thrift::Types::STRING}, :optional => true}, # Note: each admin must also be a member of the group. ADMINS => {:type => ::Thrift::Types::LIST, :name => 'admins', :element => {:type => ::Thrift::Types::STRING}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
51 |
# File 'lib/group_manager_model_types.rb', line 51 def struct_fields; FIELDS; end |
#validate ⇒ Object
53 54 |
# File 'lib/group_manager_model_types.rb', line 53 def validate end |