struct KstwCanteenScraper::Dish

Included Modules

Defined in:

kstw_canteen_scraper/models.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String, image_url : String | Nil, menu_line_id : String, student_price : Float64 | Nil, staff_price : Float64 | Nil, guest_price : Float64 | Nil, allergen_ids : Array(Int32), additive_ids : Array(Int32), time_begin : Time, time_end : Time, location_id : String, location_part : String | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def additive_ids : Array(Int32) #

def allergen_ids : Array(Int32) #

def clone #

[View source]
def copy_with(name _name = @name, description _description = @description, image_url _image_url = @image_url, menu_line_id _menu_line_id = @menu_line_id, student_price _student_price = @student_price, staff_price _staff_price = @staff_price, guest_price _guest_price = @guest_price, allergen_ids _allergen_ids = @allergen_ids, additive_ids _additive_ids = @additive_ids, time_begin _time_begin = @time_begin, time_end _time_end = @time_end, location_id _location_id = @location_id, location_part _location_part = @location_part) #

[View source]
def description : String #

def guest_price : Float64 | Nil #

def image_url : String | Nil #

def location_id : String #

def location_part : String | Nil #

def menu_line_id : String #

def name : String #

def staff_price : Float64 | Nil #

def student_price : Float64 | Nil #

def time_begin : Time #

def time_end : Time #