Class: RestApi::Authorization

Inherits:
Object
  • Object
show all
Defined in:
app/models/rest_api.rb

Overview

An Authorization object should expose:

login - method returning an identifier for the user

and one of:

ticket - the unique ticket for the session
password - a user password

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(login, ticket = nil, password = nil) ⇒ Authorization

Returns a new instance of Authorization.



14
15
16
17
18
# File 'app/models/rest_api.rb', line 14

def initialize(,ticket=nil,password=nil)
  @login = 
  @ticket = ticket
  @password = password
end

Instance Attribute Details

#loginObject (readonly)

Returns the value of attribute login.



13
14
15
# File 'app/models/rest_api.rb', line 13

def 
  @login
end

#passwordObject (readonly)

Returns the value of attribute password.



13
14
15
# File 'app/models/rest_api.rb', line 13

def password
  @password
end

#ticketObject (readonly)

Returns the value of attribute ticket.



13
14
15
# File 'app/models/rest_api.rb', line 13

def ticket
  @ticket
end

Instance Method Details

#cache_keyObject



19
20
21
# File 'app/models/rest_api.rb', line 19

def cache_key
  
end