Class: Twilio::REST::ApiV1Version
- Defined in:
- lib/twilio-ruby/framework/rest/api_v1_version.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
Returns the value of attribute api_version.
Attributes inherited from Version
Instance Method Summary collapse
- #exception(response, _) ⇒ Object
-
#initialize(domain, version) ⇒ ApiV1Version
constructor
A new instance of ApiV1Version.
Methods inherited from Version
#absolute_url, #create, #delete, #fetch, #page, #patch, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain, version) ⇒ ApiV1Version
Returns a new instance of ApiV1Version.
11 12 13 14 15 |
# File 'lib/twilio-ruby/framework/rest/api_v1_version.rb', line 11 def initialize(domain, version) super(domain) @version = version.version @api_version = 'v1' end |
Instance Attribute Details
#api_version ⇒ Object
Returns the value of attribute api_version.
9 10 11 |
# File 'lib/twilio-ruby/framework/rest/api_v1_version.rb', line 9 def api_version @api_version end |
Instance Method Details
#exception(response, _) ⇒ Object
17 18 19 |
# File 'lib/twilio-ruby/framework/rest/api_v1_version.rb', line 17 def exception(response, _) RestErrorV10.new(response.body) end |