Class: GetStream::Generated::Models::UserCreatedWithinParameters
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::UserCreatedWithinParameters
- Defined in:
- lib/getstream_ruby/generated/models/user_created_within_parameters.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UserCreatedWithinParameters
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UserCreatedWithinParameters
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/user_created_within_parameters.rb', line 17 def initialize(attributes = {}) super(attributes) @max_age = attributes[:max_age] || attributes['max_age'] || nil end |
Instance Attribute Details
#max_age ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/user_created_within_parameters.rb', line 14 def max_age @max_age 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/user_created_within_parameters.rb', line 23 def self.json_field_mappings { max_age: 'max_age' } end |