Class: GetStream::Generated::Models::ActivityPinResponse
- Defined in:
- lib/getstream_ruby/generated/models/activity_pin_response.rb
Instance Attribute Summary collapse
- #activity ⇒ ActivityResponse
-
#created_at ⇒ DateTime
When the pin was created.
-
#feed ⇒ String
ID of the feed where activity is pinned.
-
#updated_at ⇒ DateTime
When the pin was last updated.
- #user ⇒ UserResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ActivityPinResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ActivityPinResponse
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 29 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @feed = attributes[:feed] || attributes['feed'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @activity = attributes[:activity] || attributes['activity'] @user = attributes[:user] || attributes['user'] end |
Instance Attribute Details
#activity ⇒ ActivityResponse
23 24 25 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 23 def activity @activity end |
#created_at ⇒ DateTime
Returns When the pin was created.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 14 def created_at @created_at end |
#feed ⇒ String
Returns ID of the feed where activity is pinned.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 17 def feed @feed end |
#updated_at ⇒ DateTime
Returns When the pin was last updated.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 20 def updated_at @updated_at end |
#user ⇒ UserResponse
26 27 28 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 26 def user @user end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/activity_pin_response.rb', line 39 def self.json_field_mappings { created_at: 'created_at', feed: 'feed', updated_at: 'updated_at', activity: 'activity', user: 'user' } end |