Class: Twilio::REST::Oauth::V1::UserInfoContext
- Inherits:
-
InstanceContext
- Object
- InstanceContext
- Twilio::REST::Oauth::V1::UserInfoContext
- Defined in:
- lib/twilio-ruby/rest/oauth/v1/user_info.rb
Instance Method Summary collapse
-
#fetch ⇒ UserInfoInstance
Fetch the UserInfoInstance.
-
#initialize(version) ⇒ UserInfoContext
constructor
Initialize the UserInfoContext.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ UserInfoContext
Initialize the UserInfoContext
47 48 49 50 51 52 53 54 55 |
# File 'lib/twilio-ruby/rest/oauth/v1/user_info.rb', line 47 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/userinfo" end |
Instance Method Details
#fetch ⇒ UserInfoInstance
Fetch the UserInfoInstance
59 60 61 62 63 64 65 66 |
# File 'lib/twilio-ruby/rest/oauth/v1/user_info.rb', line 59 def fetch payload = @version.fetch('GET', @uri) UserInfoInstance.new( @version, payload, ) end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
78 79 80 81 |
# File 'lib/twilio-ruby/rest/oauth/v1/user_info.rb', line 78 def inspect context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Oauth.V1.UserInfoContext #{context}>" end |
#to_s ⇒ Object
Provide a user friendly representation
71 72 73 74 |
# File 'lib/twilio-ruby/rest/oauth/v1/user_info.rb', line 71 def to_s context = @solution.map{|k, v| "#{k}: #{v}"}.join(',') "#<Twilio.Oauth.V1.UserInfoContext #{context}>" end |