Class: Telnyx::Models::OAuthRetrieveResponse::Data::RequestedScope

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/oauth_retrieve_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id: nil, description: nil, name: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Scope ID

  • description (String) (defaults to: nil)

    Scope description

  • name (String) (defaults to: nil)

    Scope name



82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/telnyx/models/oauth_retrieve_response.rb', line 82

class RequestedScope < Telnyx::Internal::Type::BaseModel
  # @!attribute id
  #   Scope ID
  #
  #   @return [String, nil]
  optional :id, String

  # @!attribute description
  #   Scope description
  #
  #   @return [String, nil]
  optional :description, String

  # @!attribute name
  #   Scope name
  #
  #   @return [String, nil]
  optional :name, String

  # @!method initialize(id: nil, description: nil, name: nil)
  #   @param id [String] Scope ID
  #
  #   @param description [String] Scope description
  #
  #   @param name [String] Scope name
end

Instance Attribute Details

#descriptionString?

Scope description

Returns:

  • (String, nil)


93
# File 'lib/telnyx/models/oauth_retrieve_response.rb', line 93

optional :description, String

#idString?

Scope ID

Returns:

  • (String, nil)


87
# File 'lib/telnyx/models/oauth_retrieve_response.rb', line 87

optional :id, String

#nameString?

Scope name

Returns:

  • (String, nil)


99
# File 'lib/telnyx/models/oauth_retrieve_response.rb', line 99

optional :name, String