Sha256: e0d0ca84f7ce0fb462b3ec9138fa6025ee1f7878e4c98ab9b3212508d663f7d7

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

require_relative 'objects'

class TelegramBot::Location < Struct.new(:longitude, :latitude)
  include TelegramBot::AutoFromMethods

  def self.from(hsh, lat = nil)
    case hsh
    when Integer
      new(hsh, lat)
    else
      super(hsh)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
telegram_bot_ruby-0.1.7 lib/telegram_bot/location.rb
telegram_bot_ruby-0.1.6 lib/telegram_bot/location.rb
telegram_bot_ruby-0.1.5 lib/telegram_bot/location.rb
telegram_bot_ruby-0.1.3 lib/telegram_bot/location.rb
telegram_bot_ruby-0.1.1 lib/telegram_bot/location.rb