Class: Osm::Event::BadgeLink

Inherits:
Model
  • Object
show all
Includes:
ActiveAttr::Model, ActiveModel::MassAssignmentSecurity
Defined in:
lib/osm/event.rb,
lib/osm/event.rb

Overview

Ensure the constant exists for the validators

Constant Summary collapse

SORT_BY =
[:badge_section, :badge_type, :badge_name, :requirement_label]

Instance Attribute Summary collapse

Method Summary

Methods inherited from Model

#<, #<=, #<=>, #>, #>=, #between?, #changed_attributes, configure, #reset_changed_attributes, #to_i

Instance Attribute Details

#badge_idFixnum

Returns the badge’s ID in OSM.

Returns:

  • (Fixnum)

    the badge’s ID in OSM



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#badge_nameString

Returns the badge’s name.

Returns:

  • (String)

    the badge’s name



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#badge_sectionSymbol

Returns the section type that the badge belongs to.

Returns:

  • (Symbol)

    the section type that the badge belongs to



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#badge_typeSymbol

Returns the type of badge.

Returns:

  • (Symbol)

    the type of badge



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#badge_versionFixnum

Returns the version of the badge.

Returns:

  • (Fixnum)

    the version of the badge



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#dataString

Returns what to put in the column when the badge records are updated.

Returns:

  • (String)

    what to put in the column when the badge records are updated



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#requirement_idFixnum

Returns the requirement’s ID in OSM.

Returns:

  • (Fixnum)

    the requirement’s ID in OSM



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object

#requirement_labelString

Returns human firendly requirement label.

Returns:

  • (String)

    human firendly requirement label



604
# File 'lib/osm/event.rb', line 604

attribute :badge_type, :type => Object