Sha256: bd3173978a75f470e3aabf4e821d0ed926ec6abf3328ef614a90f71c8ebf56d9
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
module Line module Bot module MessageBuilder class Message::Location < Message attr_accessor :title, :address, :latitude, :longitude def initialize(title: nil, address: nil, latitude: nil, longitude: nil) super 'location' do @title = title @address = address @latitude = latitude @longitude = longitude yield self if block_given? end end def self.required { 'type' => String, 'title' => String, 'address' => String, 'latitude' => Float, 'longitude' => Float } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
line-bot-message-builder-0.1.2 | lib/line/bot/message_builder/messages/location.rb |