Class: Glabssms::TokenResult

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/glabssms/token_result.rb

Overview

This class is used as a response object when we successfully retrieve a token from Globe Labs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#set_instance_variables_from_hash

Constructor Details

#initialize(attributes) ⇒ TokenResult

Returns a new instance of TokenResult.



12
13
14
# File 'lib/glabssms/token_result.rb', line 12

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



9
10
11
# File 'lib/glabssms/token_result.rb', line 9

def access_token
  @access_token
end

#subscriber_numberObject (readonly)

Returns the value of attribute subscriber_number.



10
11
12
# File 'lib/glabssms/token_result.rb', line 10

def subscriber_number
  @subscriber_number
end

Class Method Details

._new(*args) ⇒ Object



18
19
20
# File 'lib/glabssms/token_result.rb', line 18

def _new(*args)
  new(*args)
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/glabssms/token_result.rb', line 23

def success?
  true
end