struct Srcom::Variable

Overview

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

Included Modules

Defined in:

srcr/mappings/variable/variable.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def category : String? #

[View source]
def category=(category : String?) #

[View source]
def full_category : Category? #

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


[View source]
def game : Game #

Returns the full Game this Variable belongs to.


[View source]
def id : String #

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

[View source]
def is_subcategory : Bool #

[View source]
def is_subcategory=(is_subcategory : Bool) #

[View source]
def links : Array(Link) #

[View source]
def links=(links : Array(Link)) #

[View source]
def mandatory : Bool #

[View source]
def mandatory=(mandatory : Bool) #

[View source]
def name : String #

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

[View source]
def obsoletes : Bool #

[View source]
def obsoletes=(obsoletes : Bool) #

[View source]
def scope #

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


[View source]
def scope=(scope : Variable::Scope) #

[View source]
def user_defined : Bool #

[View source]
def user_defined=(user_defined : Bool) #

[View source]
def values : Variable::Values #

[View source]
def values=(values : Variable::Values) #

[View source]