Class: TD::Types::Venue

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/venue.rb

Overview

Describes a venue.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#addressTD::Types::String

Venue address; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of address



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def address
  @address
end

#idTD::Types::String

Identifier of the venue in the provider database; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of id



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def id
  @id
end

#locationTD::Types::Location

Venue location; as defined by the sender.

Returns:



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def location
  @location
end

#providerTD::Types::String

Provider of the venue database; as defined by the sender. Currently only “foursquare” and “gplaces” (Google Places) need to be supported.

Returns:

  • (TD::Types::String)

    the current value of provider



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def provider
  @provider
end

#titleTD::Types::String

Venue name; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of title



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def title
  @title
end

#typeTD::Types::String

Type of the venue in the provider database; as defined by the sender.

Returns:

  • (TD::Types::String)

    the current value of type



11
12
13
# File 'lib/tdlib/types/venue.rb', line 11

def type
  @type
end