Class: FamilyappSdk::Components::QuickReply

Inherits:
Object
  • Object
show all
Defined in:
lib/familyapp_sdk/components/quick_reply.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#imageObject

Returns the value of attribute image.



4
5
6
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 4

def image
  @image
end

#payloadObject

Returns the value of attribute payload.



4
5
6
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 4

def payload
  @payload
end

#titleObject

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

#buildObject



13
14
15
# File 'lib/familyapp_sdk/components/quick_reply.rb', line 13

def build
  instance_values.delete_if { |_attribute, value| value.nil? }
end