Class: FamilyappSdk::Components::QuickReply
- Inherits:
-
Object
- Object
- FamilyappSdk::Components::QuickReply
- Defined in:
- lib/familyapp_sdk/components/quick_reply.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
Returns the value of attribute image.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(title:, payload: nil, image: nil, color: nil) ⇒ QuickReply
constructor
A new instance of QuickReply.
Constructor Details
#initialize(title:, payload: nil, image: nil, color: nil) ⇒ QuickReply
Returns a new instance of QuickReply.
6 7 8 9 10 11 |
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 6 def initialize(title:, payload: nil, image: nil, color: nil) @title = title @payload = payload @image = image @color = color end |
Instance Attribute Details
#image ⇒ Object
Returns the value of attribute image.
4 5 6 |
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 4 def image @image end |
#payload ⇒ Object
Returns the value of attribute payload.
4 5 6 |
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 4 def payload @payload end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 4 def title @title end |
Instance Method Details
#build ⇒ Object
13 14 15 |
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 13 def build instance_values.delete_if { |_attribute, value| value.nil? } end |