Class: Telegram::Bot::Types::Location

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/location.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

#headingInteger? (readonly)

Returns the value of attribute heading.

Returns:

  • (Integer, nil)


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

def heading
  @heading
end

#horizontal_accuracyFloat? (readonly)

Returns the value of attribute horizontal_accuracy.

Returns:

  • (Float, nil)


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

def horizontal_accuracy
  @horizontal_accuracy
end

#latitudeFloat (readonly)

Returns the value of attribute latitude.

Returns:

  • (Float)


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

def latitude
  @latitude
end

#live_periodInteger? (readonly)

Returns the value of attribute live_period.

Returns:

  • (Integer, nil)


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

def live_period
  @live_period
end

#longitudeFloat (readonly)

Returns the value of attribute longitude.

Returns:

  • (Float)


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

def longitude
  @longitude
end

#proximity_alert_radiusInteger? (readonly)

Returns the value of attribute proximity_alert_radius.

Returns:

  • (Integer, nil)


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

def proximity_alert_radius
  @proximity_alert_radius
end

Class Method Details

.new(latitude:, longitude:, horizontal_accuracy:, live_period:, heading:, proximity_alert_radius:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(latitude:, longitude:, horizontal_accuracy:, live_period:, heading:, proximity_alert_radius:) ⇒ instance

    Parameters:

    • latitude: (Float)
    • longitude: (Float)
    • horizontal_accuracy: (Float)
    • live_period: (Integer)
    • heading: (Integer)
    • proximity_alert_radius: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (latitude: Float, longitude: Float, ?horizontal_accuracy: Float, ?live_period: Integer, ?heading: Integer, ?proximity_alert_radius: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance