class Hamilton::Types::StoryAreaTypeLink

Overview

Describes a story area pointing to an HTTP or tg:// link. Currently, a story can have up to 3 link 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 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 type : String #

Type of the area, always "link".


def type=(type : String) #

Type of the area, always "link".


def url : String #

HTTP or tg:// URL to be opened when the area is clicked.


def url=(url : String) #

HTTP or tg:// URL to be opened when the area is clicked.