Class: SequelZeroTime

Inherits:
String show all
Defined in:
lib/kiss/model.rb

Instance Method Summary collapse

Methods inherited from String

#adjective, #blank?, #capitalize, #commaize, #content_length, #headercase, #html_escape, #original_sequel_titlecase, #original_sequel_underscore, #prepend_html, random, #remove_tags, #titlecase, #to_const, #underscore, #unless_blank, #unless_equal_to, #url_escape, #url_unescape, #validate

Constructor Details

#initialize(value = '0000-00-00 00:00', *args, &block) ⇒ SequelZeroTime

Returns a new instance of SequelZeroTime.



382
383
384
# File 'lib/kiss/model.rb', line 382

def initialize(value = '0000-00-00 00:00', *args, &block)
  super(value, *args, &block)
end

Instance Method Details

#+(*args) ⇒ Object

arithmetic operators



387
388
389
# File 'lib/kiss/model.rb', line 387

def +(*args)
  self
end

#-(*args) ⇒ Object



390
391
392
# File 'lib/kiss/model.rb', line 390

def -(*args)
  self
end

#<(value) ⇒ Object



404
405
406
# File 'lib/kiss/model.rb', line 404

def <(value)
  return true
end

#<=(value) ⇒ Object



407
408
409
# File 'lib/kiss/model.rb', line 407

def <=(value)
  return true
end

#==(value) ⇒ Object

comparision operators



395
396
397
# File 'lib/kiss/model.rb', line 395

def ==(value)
  (value == 0 || value.is_a?(SequelZeroTime)) ? true : false
end

#>(value) ⇒ Object



398
399
400
# File 'lib/kiss/model.rb', line 398

def >(value)
  return false
end

#>=(value) ⇒ Object



401
402
403
# File 'lib/kiss/model.rb', line 401

def >=(value)
  (value == 0 || value.is_a?(SequelZeroTime)) ? true : false
end

#from_timezone(zone) ⇒ Object



420
421
422
# File 'lib/kiss/model.rb', line 420

def from_timezone(zone)
  self
end

#hmObject



454
# File 'lib/kiss/model.rb', line 454

def hm; ''; end

#hm_mdyObject



458
# File 'lib/kiss/model.rb', line 458

def hm_mdy; ''; end

#hm_mdy_fullObject Also known as: hm_mdy_long



462
# File 'lib/kiss/model.rb', line 462

def hm_mdy_full; ''; end

#hmsObject



456
# File 'lib/kiss/model.rb', line 456

def hms; ''; end

#hms_mdyObject



460
# File 'lib/kiss/model.rb', line 460

def hms_mdy; ''; end

#hmszObject



457
# File 'lib/kiss/model.rb', line 457

def hmsz; ''; end

#hmsz_mdyObject



461
# File 'lib/kiss/model.rb', line 461

def hmsz_mdy; ''; end

#hmzObject



455
# File 'lib/kiss/model.rb', line 455

def hmz; ''; end

#hmz_mdyObject



459
# File 'lib/kiss/model.rb', line 459

def hmz_mdy; ''; end

#hmz_mdy_fullObject Also known as: hmz_mdy_long



464
# File 'lib/kiss/model.rb', line 464

def hmz_mdy_full; ''; end

#in_between?(*args) ⇒ Boolean

Returns:

  • (Boolean)


469
# File 'lib/kiss/model.rb', line 469

def in_between?(*args); false; end

#mdObject



435
# File 'lib/kiss/model.rb', line 435

def md; ''; end

#md_fullObject Also known as: md_long



436
# File 'lib/kiss/model.rb', line 436

def md_full; ''; end

#mdyObject



438
# File 'lib/kiss/model.rb', line 438

def mdy; ''; end

#mdy_fullObject Also known as: mdy_long



439
# File 'lib/kiss/model.rb', line 439

def mdy_full; ''; end

#mdy_hmObject



441
# File 'lib/kiss/model.rb', line 441

def mdy_hm; ''; end

#mdy_hm_fullObject Also known as: mdy_hm_long



450
# File 'lib/kiss/model.rb', line 450

def mdy_hm_full; ''; end

#mdy_hmsObject



443
# File 'lib/kiss/model.rb', line 443

def mdy_hms; ''; end

#mdy_hmszObject



444
# File 'lib/kiss/model.rb', line 444

def mdy_hmsz; ''; end

#mdy_hmzObject



442
# File 'lib/kiss/model.rb', line 442

def mdy_hmz; ''; end

#mdy_hmz_fullObject Also known as: mdy_hmz_long



452
# File 'lib/kiss/model.rb', line 452

def mdy_hmz_full; ''; end

#set_timezone!(zone, utc) ⇒ Object

timezone conversion



417
418
419
# File 'lib/kiss/model.rb', line 417

def set_timezone!(zone, utc)
  self
end

#sqlObject



449
# File 'lib/kiss/model.rb', line 449

def sql; '0000-00-00 00:00'; end

#strftime(*args) ⇒ Object

string representations



434
# File 'lib/kiss/model.rb', line 434

def strftime(*args); ''; end

#to_fObject

format conversion



412
# File 'lib/kiss/model.rb', line 412

def to_f; 0; end

#to_iObject



413
# File 'lib/kiss/model.rb', line 413

def to_i; 0; end

#to_sObject



414
# File 'lib/kiss/model.rb', line 414

def to_s; ''; end

#to_timezone(zone) ⇒ Object



423
424
425
# File 'lib/kiss/model.rb', line 423

def to_timezone(zone)
  self
end

#to_utcObject



426
427
428
# File 'lib/kiss/model.rb', line 426

def to_utc
  self
end

#ymd_hmObject



445
# File 'lib/kiss/model.rb', line 445

def ymd_hm; ''; end

#ymd_hmsObject



447
# File 'lib/kiss/model.rb', line 447

def ymd_hms; ''; end

#ymd_hmszObject



448
# File 'lib/kiss/model.rb', line 448

def ymd_hmsz; ''; end

#ymd_hmzObject



446
# File 'lib/kiss/model.rb', line 446

def ymd_hmz; ''; end

#zero?Boolean

Returns:

  • (Boolean)


467
# File 'lib/kiss/model.rb', line 467

def zero?; true; end

#zoneObject



429
430
431
# File 'lib/kiss/model.rb', line 429

def zone
  ''
end