Class: BadgesEngine::Issuer

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serialization, ActiveModel::Validations
Defined in:
app/models/badges_engine/issuer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contactObject

Returns the value of attribute contact.



8
9
10
# File 'app/models/badges_engine/issuer.rb', line 8

def contact
  @contact
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'app/models/badges_engine/issuer.rb', line 8

def name
  @name
end

#orgObject

Returns the value of attribute org.



8
9
10
# File 'app/models/badges_engine/issuer.rb', line 8

def org
  @org
end

#originObject

Returns the value of attribute origin.



8
9
10
# File 'app/models/badges_engine/issuer.rb', line 8

def origin
  @origin
end