Class: Verizon::ManagedAccProvisionedList
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- Verizon::ManagedAccProvisionedList
- Defined in:
- lib/verizon/models/managed_acc_provisioned_list.rb
Overview
ManagedAccProvisionedList Model.
Instance Attribute Summary collapse
-
#id ⇒ String
Account name.
-
#txid ⇒ String
Transaction identifier.
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(id = SKIP, txid = SKIP) ⇒ ManagedAccProvisionedList
constructor
A new instance of ManagedAccProvisionedList.
Methods inherited from BaseModel
Constructor Details
#initialize(id = SKIP, txid = SKIP) ⇒ ManagedAccProvisionedList
Returns a new instance of ManagedAccProvisionedList.
41 42 43 44 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 41 def initialize(id = SKIP, txid = SKIP) @id = id unless id == SKIP @txid = txid unless txid == SKIP end |
Instance Attribute Details
#id ⇒ String
Account name
14 15 16 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 14 def id @id end |
#txid ⇒ String
Transaction identifier
18 19 20 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 18 def txid @txid end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 47 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash.key?('id') ? hash['id'] : SKIP txid = hash.key?('txid') ? hash['txid'] : SKIP # Create object from extracted values. ManagedAccProvisionedList.new(id, txid) end |
.names ⇒ Object
A mapping from model property names to API property names.
21 22 23 24 25 26 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 21 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['txid'] = 'txid' @_hash end |
.nullables ⇒ Object
An array for nullable fields
37 38 39 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 37 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
29 30 31 32 33 34 |
# File 'lib/verizon/models/managed_acc_provisioned_list.rb', line 29 def self.optionals %w[ id txid ] end |