struct DotPrison::Prison::Intake

Defined in:

dot_prison/prison/intake.cr

Constructors

Instance Method Summary

Instance methods inherited from struct DotPrison::Consumer

initialize initialize, table : DotPrison::Table table

Constructor methods inherited from struct DotPrison::Consumer

new new

Instance methods inherited from class Object

to_prison to_prison

Constructor Detail

def self.new(table : DotPrison::Table) #

[View source]

Instance Method Detail


[View source]
def daily_scheduled_time : Int32 #

[View source]
def daily_scheduled_time=(v : Int) #

[View source]
def death_row_blocked : Int32 #

[View source]
def death_row_blocked=(v : Int) #

[View source]
def last_intake_time : Float64 #

[View source]
def last_intake_time=(v : Number) #

[View source]
def num : Int32 #

[View source]
def num=(v : Int) #

[View source]
def num_per_day : Int32 #

[View source]
def num_per_day=(v : Int) #

[View source]
def num_total : Int32 #

[View source]
def num_total=(v : Int) #

[View source]
def remove_intake_restrictions : Bool #

[View source]
def remove_intake_restrictions=(v : Bool) #

[View source]
def table : DotPrison::Table #

def type : Int32 #

TODO Enum int!


[View source]
def type=(v : Int) #

TODO Enum int!


[View source]
def unconsumed : Array(String) #

Keys for the associated table that have not been consumed

This may be because they have not been implemented yet, they may have an unknown purpose, or could be part of an unsupported mod


[View source]
def unconsumed_tree : Array(Tuple(String, String)) #

Returns a recursive array of the {class name, key} that have not been consumed

Uses the Consumer::HANDLED_VARIABLES constant, so custom Consumer::consume macro use may not work

Similar to #unconsumed, but travels the whole tree