Class: Setting

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
models/setting.rb

Overview

Vulnreport system setting for DB-stored settings

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from DataMapper::Resource

#make_dirty

Class Method Details

+ (Integer) id(repository = nil)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/setting.rb', line 12

property :id,				Serial

+ (String) setting_key(repository = nil)

Returns Setting key

Returns:

  • (String)

    Setting key



13
# File 'models/setting.rb', line 13

property :setting_key,		String, :length => 100

+ (String) setting_value(repository = nil)

Returns Setting value

Returns:

  • (String)

    Setting value



14
# File 'models/setting.rb', line 14

property :setting_value,	Text

Instance Method Details

- (Integer) id

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/setting.rb', line 12

property :id,				Serial

- (Integer) id=(value)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



12
# File 'models/setting.rb', line 12

property :id,				Serial

- (String) setting_key

Returns Setting key

Returns:

  • (String)

    Setting key



13
# File 'models/setting.rb', line 13

property :setting_key,		String, :length => 100

- (String) setting_key=(value)

Returns Setting key

Returns:

  • (String)

    Setting key



13
# File 'models/setting.rb', line 13

property :setting_key,		String, :length => 100

- (String) setting_value

Returns Setting value

Returns:

  • (String)

    Setting value



14
# File 'models/setting.rb', line 14

property :setting_value,	Text

- (String) setting_value=(value)

Returns Setting value

Returns:

  • (String)

    Setting value



14
# File 'models/setting.rb', line 14

property :setting_value,	Text