Class: BadgesEngine::Issuer
- Inherits:
-
Object
- Object
- BadgesEngine::Issuer
- Includes:
- ActiveModel::Serialization, ActiveModel::Validations
- Defined in:
- app/models/badges_engine/issuer.rb
Instance Attribute Summary collapse
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#name ⇒ Object
Returns the value of attribute name.
-
#org ⇒ Object
Returns the value of attribute org.
-
#origin ⇒ Object
Returns the value of attribute origin.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Issuer
constructor
A new instance of Issuer.
Constructor Details
#initialize(attrs = {}) ⇒ Issuer
Returns a new instance of Issuer.
10 11 12 13 14 15 |
# File 'app/models/badges_engine/issuer.rb', line 10 def initialize(attrs={}) @origin = attrs[:origin] @name = attrs[:name] @org = attrs[:org] @contact = attrs[:contact] end |
Instance Attribute Details
#contact ⇒ Object
Returns the value of attribute contact.
8 9 10 |
# File 'app/models/badges_engine/issuer.rb', line 8 def contact @contact end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'app/models/badges_engine/issuer.rb', line 8 def name @name end |
#org ⇒ Object
Returns the value of attribute org.
8 9 10 |
# File 'app/models/badges_engine/issuer.rb', line 8 def org @org end |
#origin ⇒ Object
Returns the value of attribute origin.
8 9 10 |
# File 'app/models/badges_engine/issuer.rb', line 8 def origin @origin end |