struct

Srcom::Variable

Inherits JSON::Serializable / Struct / Value / Object

Has shorthand methods to getting the resources that the Links in #links point to.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

category
Source
category=(category : String | Nil)
Source
full_category

Returns the full Category this Variable belongs to, unless it belongs to all categories.

Source
game

Returns the full Game this Variable belongs to.

Source
id=(id : String)
Source
is_subcategory
Source
is_subcategory=(is_subcategory : Bool)
Source
mandatory
Source
mandatory=(mandatory : Bool)
Source
name
Source
name=(name : String)
Source
obsoletes
Source
obsoletes=(obsoletes : Bool)
Source
scope

Shorthand of Scope#type, since Variable::Scope wraps just this attribute anyway

Source
scope=(scope : Variable::Scope)
Source
user_defined
Source
user_defined=(user_defined : Bool)
Source
values
Source
values=(values : Variable::Values)
Source

Nested types