class MessageQuickly::Messaging::LocationAttachment

Attributes

latitude[RW]
longitude[RW]

Public Class Methods

new(params = {}) click to toggle source
Calls superclass method
# File lib/message_quickly/messaging/location_attachment.rb, line 7
def initialize(params = {})
  params['type'] ||= 'location'
  super(params)
end

Public Instance Methods

to_hash() click to toggle source
# File lib/message_quickly/messaging/location_attachment.rb, line 12
def to_hash
  { type: type, payload: { coordinates: { lat: latitude, long: longitude } } }
end