Class: PostProxy::Reaction

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ Reaction

Returns a new instance of Reaction.



345
346
347
348
349
350
351
# File 'lib/postproxy/types.rb', line 345

def initialize(**attrs)
  @emoji = nil
  @reaction = nil
  @at = nil
  super
  @at = parse_time(@at)
end

Instance Attribute Details

#atObject

Returns the value of attribute at.



343
344
345
# File 'lib/postproxy/types.rb', line 343

def at
  @at
end

#emojiObject

Returns the value of attribute emoji.



343
344
345
# File 'lib/postproxy/types.rb', line 343

def emoji
  @emoji
end

#reactionObject

Returns the value of attribute reaction.



343
344
345
# File 'lib/postproxy/types.rb', line 343

def reaction
  @reaction
end

#sender_external_idObject

Returns the value of attribute sender_external_id.



343
344
345
# File 'lib/postproxy/types.rb', line 343

def sender_external_id
  @sender_external_id
end