Class: Lightrail::Ping
- Inherits:
-
LightrailObject
- Object
- LightrailObject
- Lightrail::Ping
- Defined in:
- lib/lightrail_client/ping.rb
Instance Attribute Summary collapse
-
#effectiveScopes ⇒ Object
Returns the value of attribute effectiveScopes.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#roles ⇒ Object
Returns the value of attribute roles.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Methods inherited from LightrailObject
Constructor Details
This class inherits a constructor from Lightrail::LightrailObject
Instance Attribute Details
#effectiveScopes ⇒ Object
Returns the value of attribute effectiveScopes.
3 4 5 |
# File 'lib/lightrail_client/ping.rb', line 3 def effectiveScopes @effectiveScopes end |
#mode ⇒ Object
Returns the value of attribute mode.
3 4 5 |
# File 'lib/lightrail_client/ping.rb', line 3 def mode @mode end |
#roles ⇒ Object
Returns the value of attribute roles.
3 4 5 |
# File 'lib/lightrail_client/ping.rb', line 3 def roles @roles end |
#scopes ⇒ Object
Returns the value of attribute scopes.
3 4 5 |
# File 'lib/lightrail_client/ping.rb', line 3 def scopes @scopes end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/lightrail_client/ping.rb', line 3 def username @username end |
Class Method Details
.ping ⇒ Object
5 6 7 8 9 |
# File 'lib/lightrail_client/ping.rb', line 5 def self.ping response = Lightrail::Connection.ping Lightrail::Validator.validate_ping_response!(response) self.new(response['user']) end |