struct Waknax::Event

Included Modules

Defined in:

waknax/event.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Waknax::With::ImageUrl

image_url : String image_url

Instance methods inherited from module Waknax::With::Color

color : String color

Instance methods inherited from module Waknax::With::Id

id : UInt16 id

Constructor Detail

def self.new(id : UInt16, type : String, mobile_info : String | Nil, color : String, date : Time, color_date : Union(String, Nil), recurring : Bool, background : Bool, background_url : Bool, day_background_url : Bool, border_background_url : Bool, image_url : String, name : String, boss_image_url : String, boss_name : String, boss_text : String, ephemeris : String, rubrikabrax : String, show_fest : Bool, fest_text : String, weight : UInt16) #

[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

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

def self.new(bson : BSON) #

Allocate an instance and copies data from a BSON struct.

class User
  include BSON::Serializable
  property name : String
end

data = BSON.new
data["name"] = "John"
User.new(data)

Class Method Detail

def self.from_bson(bson : BSON) #

NOTE See self.new.


Instance Method Detail

def [](value : String) #

[View source]
def background : Bool #

def background_url : Bool #

def border_background_url : Bool #

def boss_image_url : String #

def boss_name : String #

def boss_text : String #

def color_date : Union(String, Nil) #

def date : Time #

def day_background_url : Bool #

def ephemeris : String #

def fest_text : String #

def mobile_info : String | Nil #

def name : String #

def recurring : Bool #

def rubrikabrax : String #

def show_fest : Bool #

def to_bson(bson = BSON.new) #

Converts to a BSON representation.

user = User.new name: "John"
bson = user.to_bson

def type : String #

def weight : UInt16 #