Class: Telegram::Bot::Types::Venue

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/venue.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#addressString (readonly)

Returns the value of attribute address.

Returns:

  • (String)


10
11
12
# File 'sig/telegram/bot/types/venue.rbs', line 10

def address
  @address
end

#foursquare_idString? (readonly)

Returns the value of attribute foursquare_id.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/venue.rbs', line 11

def foursquare_id
  @foursquare_id
end

#foursquare_typeString? (readonly)

Returns the value of attribute foursquare_type.

Returns:

  • (String, nil)


12
13
14
# File 'sig/telegram/bot/types/venue.rbs', line 12

def foursquare_type
  @foursquare_type
end

#google_place_idString? (readonly)

Returns the value of attribute google_place_id.

Returns:

  • (String, nil)


13
14
15
# File 'sig/telegram/bot/types/venue.rbs', line 13

def google_place_id
  @google_place_id
end

#google_place_typeString? (readonly)

Returns the value of attribute google_place_type.

Returns:

  • (String, nil)


14
15
16
# File 'sig/telegram/bot/types/venue.rbs', line 14

def google_place_type
  @google_place_type
end

#locationLocation (readonly)

Returns the value of attribute location.

Returns:



8
9
10
# File 'sig/telegram/bot/types/venue.rbs', line 8

def location
  @location
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


9
10
11
# File 'sig/telegram/bot/types/venue.rbs', line 9

def title
  @title
end

Class Method Details

.new(location:, title:, address:, foursquare_id:, foursquare_type:, google_place_id:, google_place_type:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(location:, title:, address:, foursquare_id:, foursquare_type:, google_place_id:, google_place_type:) ⇒ instance

    Parameters:

    • location: (Location)
    • title: (String)
    • address: (String)
    • foursquare_id: (String)
    • foursquare_type: (String)
    • google_place_id: (String)
    • google_place_type: (String)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/venue.rbs', line 6

def self.new: (location: Location, title: String, address: String, ?foursquare_id: String, ?foursquare_type: String, ?google_place_id: String, ?google_place_type: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance