class Tourmaline::StoryAreaTypeLocation

Overview

Describes a story area pointing to a location. Currently, a story can have up to 10 location areas.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, latitude : Float64, longitude : Float64, address : Tourmaline::LocationAddress | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def address : Tourmaline::LocationAddress | Nil #

Optional. Address of the location


[View source]
def address=(address : Tourmaline::LocationAddress | Nil) #

Optional. Address of the location


[View source]
def latitude : Float64 #

Location latitude in degrees


[View source]
def latitude=(latitude : Float64) #

Location latitude in degrees


[View source]
def longitude : Float64 #

Location longitude in degrees


[View source]
def longitude=(longitude : Float64) #

Location longitude in degrees


[View source]
def type : String #

Type of the area, always "location"


[View source]
def type=(type : String) #

Type of the area, always "location"


[View source]