Class: UntitledApi::InternalOrgs128routersRegisterResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalOrgs128routersRegisterResponse1
- Defined in:
- lib/untitled_api/models/internal_orgs128routers_register_response1.rb
Overview
InternalOrgs128routersRegisterResponse1 Model.
Instance Attribute Summary collapse
-
#env ⇒ String
TODO: Write general description for this method.
-
#epterm_url ⇒ String
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#org_id ⇒ String
TODO: Write general description for this method.
-
#token ⇒ String
TODO: Write general description for this method.
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, org_id = SKIP, env = SKIP, epterm_url = SKIP, token = SKIP) ⇒ InternalOrgs128routersRegisterResponse1
constructor
A new instance of InternalOrgs128routersRegisterResponse1.
Methods inherited from BaseModel
Constructor Details
#initialize(id = SKIP, org_id = SKIP, env = SKIP, epterm_url = SKIP, token = SKIP) ⇒ InternalOrgs128routersRegisterResponse1
Returns a new instance of InternalOrgs128routersRegisterResponse1.
59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 59 def initialize(id = SKIP, org_id = SKIP, env = SKIP, epterm_url = SKIP, token = SKIP) @id = id unless id == SKIP @org_id = org_id unless org_id == SKIP @env = env unless env == SKIP @epterm_url = epterm_url unless epterm_url == SKIP @token = token unless token == SKIP end |
Instance Attribute Details
#env ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 22 def env @env end |
#epterm_url ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 26 def epterm_url @epterm_url end |
#id ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 14 def id @id end |
#org_id ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 18 def org_id @org_id end |
#token ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 30 def token @token end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 72 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash.key?('id') ? hash['id'] : SKIP org_id = hash.key?('org_id') ? hash['org_id'] : SKIP env = hash.key?('env') ? hash['env'] : SKIP epterm_url = hash.key?('epterm_url') ? hash['epterm_url'] : SKIP token = hash.key?('token') ? hash['token'] : SKIP # Create object from extracted values. InternalOrgs128routersRegisterResponse1.new(id, org_id, env, epterm_url, token) end |
.names ⇒ Object
A mapping from model property names to API property names.
33 34 35 36 37 38 39 40 41 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 33 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['org_id'] = 'org_id' @_hash['env'] = 'env' @_hash['epterm_url'] = 'epterm_url' @_hash['token'] = 'token' @_hash end |
.nullables ⇒ Object
An array for nullable fields
55 56 57 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 55 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
44 45 46 47 48 49 50 51 52 |
# File 'lib/untitled_api/models/internal_orgs128routers_register_response1.rb', line 44 def self.optionals %w[ id org_id env epterm_url token ] end |