Class: Twilio::REST::PreviewIam::Versionless
- Defined in:
- lib/twilio-ruby/rest/preview_iam/versionless.rb,
lib/twilio-ruby/rest/preview_iam/versionless/organization.rb,
lib/twilio-ruby/rest/preview_iam/versionless/organization/user.rb,
lib/twilio-ruby/rest/preview_iam/versionless/organization/account.rb,
lib/twilio-ruby/rest/preview_iam/versionless/organization/role_assignment.rb
Defined Under Namespace
Classes: OrganizationContext, OrganizationInstance, OrganizationList, OrganizationPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ Versionless
constructor
Initialize the Versionless version of PreviewIam.
- #organization(organization_sid = :unset) ⇒ Twilio::REST::PreviewIam::Versionless::OrganizationContext, Twilio::REST::PreviewIam::Versionless::OrganizationList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ Versionless
Initialize the Versionless version of PreviewIam
21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless.rb', line 21 def initialize(domain) super @version = 'Organizations' @organization = nil end |
Instance Method Details
#organization(organization_sid = :unset) ⇒ Twilio::REST::PreviewIam::Versionless::OrganizationContext, Twilio::REST::PreviewIam::Versionless::OrganizationList
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless.rb', line 31 def organization(organization_sid=:unset) if organization_sid.nil? raise ArgumentError, 'organization_sid cannot be nil' end if organization_sid == :unset @organization ||= OrganizationList.new self else OrganizationContext.new(self, organization_sid) end end |
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/preview_iam/versionless.rb', line 43 def to_s '<Twilio::REST::PreviewIam::Versionless>'; end |