Class: Gillbus::SessionLogin::Request

Inherits:
BaseRequest show all
Defined in:
lib/gillbus/session_login.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseRequest

#method

Constructor Details

#initialize(password:, locale: nil) ⇒ Request

Returns a new instance of Request.



6
7
8
# File 'lib/gillbus/session_login.rb', line 6

def initialize(password:, locale: nil)
  super
end

Instance Attribute Details

#localeObject

Returns the value of attribute locale.



11
12
13
# File 'lib/gillbus/session_login.rb', line 11

def locale
  @locale
end

#passwordObject

Returns the value of attribute password.



10
11
12
# File 'lib/gillbus/session_login.rb', line 10

def password
  @password
end

Instance Method Details

#paramsObject



17
18
19
# File 'lib/gillbus/session_login.rb', line 17

def params
  compact(locale: translated_locale(locale))
end

#pathObject



13
14
15
# File 'lib/gillbus/session_login.rb', line 13

def path
  "/online2/sessionLogin/online/#{@password}"
end