Class: Flag

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

Overview

Flags to be assigned to Applications

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from DataMapper::Resource

#make_dirty

Class Method Details

+ (Boolean) active(repository = nil)

Returns True if this Flag is active and available for use

Returns:

  • (Boolean)

    True if this Flag is active and available for use



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

property :active,			Boolean, :default => true

+ (String) description(repository = nil)

Returns User description of the Flag

Returns:

  • (String)

    User description of the Flag



16
# File 'models/flag.rb', line 16

property :description,		Text

+ (String) icon(repository = nil)

Returns Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)

Returns:

  • (String)

    Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)



17
# File 'models/flag.rb', line 17

property :icon,				String

+ (Integer) id(repository = nil)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



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

property :id, 				Serial

+ (Name) name(repository = nil)

Returns Name of the Flag

Returns:

  • (Name)

    Name of the Flag



15
# File 'models/flag.rb', line 15

property :name,				String

Instance Method Details

- (Boolean) active

Returns True if this Flag is active and available for use

Returns:

  • (Boolean)

    True if this Flag is active and available for use



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

property :active,			Boolean, :default => true

- (Boolean) active=(value)

Returns True if this Flag is active and available for use

Returns:

  • (Boolean)

    True if this Flag is active and available for use



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

property :active,			Boolean, :default => true

- (String) description

Returns User description of the Flag

Returns:

  • (String)

    User description of the Flag



16
# File 'models/flag.rb', line 16

property :description,		Text

- (String) description=(value)

Returns User description of the Flag

Returns:

  • (String)

    User description of the Flag



16
# File 'models/flag.rb', line 16

property :description,		Text

- (String) icon

Returns Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)

Returns:

  • (String)

    Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)



17
# File 'models/flag.rb', line 17

property :icon,				String

- (String) icon=(value)

Returns Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)

Returns:

  • (String)

    Name of the fa icon to use for this flag (optional) (e.g. info for fa-info)



17
# File 'models/flag.rb', line 17

property :icon,				String

- (Integer) id

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



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

property :id, 				Serial

- (Integer) id=(value)

Returns Primary Key

Returns:

  • (Integer)

    Primary Key



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

property :id, 				Serial

- (Name) name

Returns Name of the Flag

Returns:

  • (Name)

    Name of the Flag



15
# File 'models/flag.rb', line 15

property :name,				String

- (Name) name=(value)

Returns Name of the Flag

Returns:

  • (Name)

    Name of the Flag



15
# File 'models/flag.rb', line 15

property :name,				String