class
Tourmaline::StoryAreaTypeWeather
- Tourmaline::StoryAreaTypeWeather
- Reference
- Object
Overview
Describes a story area containing weather information. Currently, a story can have up to 3 weather areas.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(type : String, temperature : Float64, emoji : String, background_color : Int32 | Int64)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#background_color : Int32 | Int64
A color of the area background in the ARGB format
-
#background_color=(background_color : Int32 | Int64)
A color of the area background in the ARGB format
-
#emoji : String
Emoji representing the weather
-
#emoji=(emoji : String)
Emoji representing the weather
-
#temperature : Float64
Temperature, in degree Celsius
-
#temperature=(temperature : Float64)
Temperature, in degree Celsius
-
#type : String
Type of the area, always "weather"
-
#type=(type : String)
Type of the area, always "weather"
Constructor Detail
def self.new(type : String, temperature : Float64, emoji : String, background_color : Int32 | Int64)
#
Instance Method Detail
def background_color=(background_color : Int32 | Int64)
#
A color of the area background in the ARGB format