Class: Tiun::Migration::Proxy

Inherits:
Struct
  • Object
show all
Defined in:
lib/tiun/migration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



4
5
6
# File 'lib/tiun/migration.rb', line 4

def code
  @code
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4
5
6
# File 'lib/tiun/migration.rb', line 4

def name
  @name
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



4
5
6
# File 'lib/tiun/migration.rb', line 4

def timestamp
  @timestamp
end

Instance Method Details

#basenameObject



7
8
9
10
# File 'lib/tiun/migration.rb', line 7

def basename
   ""
   # TODO fake name file
end

#scopeObject



12
13
14
# File 'lib/tiun/migration.rb', line 12

def scope
   nil
end

#versionObject



16
17
18
# File 'lib/tiun/migration.rb', line 16

def version
   timestamp.utc.strftime("%Y%m%d%H%M%S").to_i
end