Class: GetStream::Generated::Models::CreateRoleRequest
- Defined in:
- lib/getstream_ruby/generated/models/create_role_request.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Role name.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CreateRoleRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ CreateRoleRequest
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/create_role_request.rb', line 17 def initialize(attributes = {}) super(attributes) @name = attributes[:name] || attributes['name'] end |
Instance Attribute Details
#name ⇒ String
Returns Role name.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/create_role_request.rb', line 14 def name @name end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
23 24 25 26 27 |
# File 'lib/getstream_ruby/generated/models/create_role_request.rb', line 23 def self.json_field_mappings { name: 'name' } end |