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.



323
324
325
326
327
328
329
# File 'lib/postproxy/types.rb', line 323

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.



321
322
323
# File 'lib/postproxy/types.rb', line 321

def at
  @at
end

#emojiObject

Returns the value of attribute emoji.



321
322
323
# File 'lib/postproxy/types.rb', line 321

def emoji
  @emoji
end

#reactionObject

Returns the value of attribute reaction.



321
322
323
# File 'lib/postproxy/types.rb', line 321

def reaction
  @reaction
end

#sender_external_idObject

Returns the value of attribute sender_external_id.



321
322
323
# File 'lib/postproxy/types.rb', line 321

def sender_external_id
  @sender_external_id
end