Class: BambooId::StateCode
- Inherits:
-
Object
- Object
- BambooId::StateCode
- Defined in:
- lib/bamboo_id/state_code.rb
Instance Method Summary collapse
-
#initialize(subdomain) ⇒ StateCode
constructor
A new instance of StateCode.
- #to_s ⇒ Object
Constructor Details
#initialize(subdomain) ⇒ StateCode
Returns a new instance of StateCode.
3 4 5 |
# File 'lib/bamboo_id/state_code.rb', line 3 def initialize(subdomain) self.subdomain = subdomain end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/bamboo_id/state_code.rb', line 7 def to_s Digest::MD5.hexdigest([Configuration.client_id, subdomain].join('')) end |