class Hamilton::Types::StoryAreaTypeWeather

Overview

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

Included Modules

Defined in:

types/story_area_type.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def background_color : Int32 #

A color of the area background in the ARGB format.


def background_color=(background_color : Int32) #

A color of the area background in the ARGB format.


def emoji : String #

Emoji representing the weather.


def emoji=(emoji : String) #

Emoji representing the weather.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def temperature : Float32 #

Temperature, in degree Celsius.


def temperature=(temperature : Float32) #

Temperature, in degree Celsius.


def type : String #

Type of the area, always "weather".


def type=(type : String) #

Type of the area, always "weather".