Class: Twilio::REST::Content::V1::ContentList::TwilioLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/content/v1/content.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ TwilioLocation

Returns a new instance of TwilioLocation.



266
267
268
269
270
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 266

def initialize(payload)
        @latitude = payload["latitude"]
        @longitude = payload["longitude"]
        @label = payload["label"]
end

Instance Attribute Details

#labelObject

Parameters:



265
266
267
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 265

def label
  @label
end

#latitudeObject

Parameters:



265
266
267
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 265

def latitude
  @latitude
end

#longitudeObject

Parameters:



265
266
267
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 265

def longitude
  @longitude
end

Instance Method Details

#to_json(options = {}) ⇒ Object



271
272
273
274
275
276
277
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 271

def to_json(options = {})
{
        latitude: @latitude,
        longitude: @longitude,
        label: @label,
}.to_json(options)
end