Sha256: b68c5c0b213a8c900794d0ed331f5da35244f5a1ae052759f289ba1d5dd8193f
Contents?: true
Size: 708 Bytes
Versions: 1
Compression:
Stored size: 708 Bytes
Contents
require_relative 'base' module WaCloudApi module Message class Location < Base attr_accessor :longitude, :latitude, :name, :address def initialize(to:, longitude:, latitude:, name: nil, address: nil) @longitude = longitude @latitude = latitude @name = name @address = address super(to: to, type: 'location') end private def request_params { messaging_product: messaging_product, to: to, type: type, location: { longitude: longitude, latitude: latitude, name: name, address: address } } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wa_cloud_api-0.1.1 | lib/wa_cloud_api/message/location.rb |