Class: OMCL::AuthService

Inherits:
Object
  • Object
show all
Defined in:
lib/omcl/dat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject

Returns the value of attribute token.



13
14
15
# File 'lib/omcl/dat.rb', line 13

def token
  @token
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/omcl/dat.rb', line 13

def type
  @type
end

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/omcl/dat.rb', line 13

def url
  @url
end