Class: Badginator::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/badginator/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Status

Returns a new instance of Status.



5
6
7
8
# File 'lib/badginator/status.rb', line 5

def initialize(args = {})
  @code = args[:code]
  @awarded_badge = args[:badge]
end

Instance Attribute Details

#awarded_badgeObject (readonly)

Returns the value of attribute awarded_badge.



3
4
5
# File 'lib/badginator/status.rb', line 3

def awarded_badge
  @awarded_badge
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/badginator/status.rb', line 3

def code
  @code
end