Class: OMCL::AuthService
- Inherits:
-
Object
- Object
- OMCL::AuthService
- Defined in:
- lib/omcl/dat.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(type, input) ⇒ AuthService
constructor
A new instance of AuthService.
Constructor Details
#initialize(type, input) ⇒ AuthService
Returns a new instance of AuthService.
15 16 17 18 19 20 21 22 23 |
# File 'lib/omcl/dat.rb', line 15 def initialize(type, input) if type == :online @type = :online @url = input else @type = :offline @token = input end end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
13 14 15 |
# File 'lib/omcl/dat.rb', line 13 def token @token end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/omcl/dat.rb', line 13 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/omcl/dat.rb', line 13 def url @url end |