class Tourmaline::StoryAreaTypeWeather

Overview

Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, temperature : Float64, emoji : String, background_color : Int32 | Int64) #

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

[View source]

Instance Method Detail

def background_color : Int32 | Int64 #

A color of the area background in the ARGB format


[View source]
def background_color=(background_color : Int32 | Int64) #

A color of the area background in the ARGB format


[View source]
def emoji : String #

Emoji representing the weather


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

Emoji representing the weather


[View source]
def temperature : Float64 #

Temperature, in degree Celsius


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

Temperature, in degree Celsius


[View source]
def type : String #

Type of the area, always "weather"


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

Type of the area, always "weather"


[View source]