Class: Verizon::ConnectivityManagementSuccessResult
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- Verizon::ConnectivityManagementSuccessResult
- Defined in:
- lib/verizon/models/connectivity_management_success_result.rb
Overview
Response to successful request.
Instance Attribute Summary collapse
-
#success ⇒ TrueClass | FalseClass
A value of “true” indicates that the device group was created successfully.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(success = SKIP) ⇒ ConnectivityManagementSuccessResult
constructor
A new instance of ConnectivityManagementSuccessResult.
Methods inherited from BaseModel
Constructor Details
#initialize(success = SKIP) ⇒ ConnectivityManagementSuccessResult
Returns a new instance of ConnectivityManagementSuccessResult.
36 37 38 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 36 def initialize(success = SKIP) @success = success unless success == SKIP end |
Instance Attribute Details
#success ⇒ TrueClass | FalseClass
A value of “true” indicates that the device group was created successfully.
15 16 17 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 15 def success @success end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
41 42 43 44 45 46 47 48 49 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 41 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. success = hash.key?('success') ? hash['success'] : SKIP # Create object from extracted values. ConnectivityManagementSuccessResult.new(success) end |
.names ⇒ Object
A mapping from model property names to API property names.
18 19 20 21 22 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 18 def self.names @_hash = {} if @_hash.nil? @_hash['success'] = 'success' @_hash end |
.nullables ⇒ Object
An array for nullable fields
32 33 34 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 32 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
25 26 27 28 29 |
# File 'lib/verizon/models/connectivity_management_success_result.rb', line 25 def self.optionals %w[ success ] end |