Class: Codestrap::Object::Standard::Datetime

Inherits:
Abstract
  • Object
show all
Defined in:
lib/codestrap/object/standard/datetime.rb

Overview

Date and Time object directly from Rubys Datetime class

Class Method Summary collapse

Class Method Details

.objectsHash

Objects

Returns:

  • (Hash)

    @option



18
19
20
# File 'lib/codestrap/object/standard/datetime.rb', line 18

def self.objects
  { 'datetime' => DateTime.now }
end

.weightInteger

Object(s) weight

Returns:

  • (Integer)


11
12
13
# File 'lib/codestrap/object/standard/datetime.rb', line 11

def self.weight
  200
end