Class: UntitledApi::ApiV1LabsSitesCbrsEdgeNodesResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1LabsSitesCbrsEdgeNodesResponse1
- Defined in:
- lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb
Overview
ApiV1LabsSitesCbrsEdgeNodesResponse1 Model.
Instance Attribute Summary collapse
-
#duration ⇒ String
TODO: Write general description for this method.
-
#limit ⇒ Float
TODO: Write general description for this method.
-
#mend ⇒ Float
TODO: Write general description for this method.
-
#mnext ⇒ String
TODO: Write general description for this method.
-
#results ⇒ Object
TODO: Write general description for this method.
-
#start ⇒ Float
TODO: Write general description for this method.
-
#total ⇒ Float
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(results = SKIP, start = SKIP, mend = SKIP, limit = SKIP, duration = SKIP, total = SKIP, mnext = SKIP) ⇒ ApiV1LabsSitesCbrsEdgeNodesResponse1
constructor
A new instance of ApiV1LabsSitesCbrsEdgeNodesResponse1.
Methods inherited from BaseModel
Constructor Details
#initialize(results = SKIP, start = SKIP, mend = SKIP, limit = SKIP, duration = SKIP, total = SKIP, mnext = SKIP) ⇒ ApiV1LabsSitesCbrsEdgeNodesResponse1
Returns a new instance of ApiV1LabsSitesCbrsEdgeNodesResponse1.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 71 def initialize(results = SKIP, start = SKIP, mend = SKIP, limit = SKIP, duration = SKIP, total = SKIP, mnext = SKIP) @results = results unless results == SKIP @start = start unless start == SKIP @mend = mend unless mend == SKIP @limit = limit unless limit == SKIP @duration = duration unless duration == SKIP @total = total unless total == SKIP @mnext = mnext unless mnext == SKIP end |
Instance Attribute Details
#duration ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 30 def duration @duration end |
#limit ⇒ Float
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 26 def limit @limit end |
#mend ⇒ Float
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 22 def mend @mend end |
#mnext ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 38 def mnext @mnext end |
#results ⇒ Object
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 14 def results @results end |
#start ⇒ Float
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 18 def start @start end |
#total ⇒ Float
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 34 def total @total end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 88 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. results = hash.key?('results') ? hash['results'] : SKIP start = hash.key?('start') ? hash['start'] : SKIP mend = hash.key?('end') ? hash['end'] : SKIP limit = hash.key?('limit') ? hash['limit'] : SKIP duration = hash.key?('duration') ? hash['duration'] : SKIP total = hash.key?('total') ? hash['total'] : SKIP mnext = hash.key?('next') ? hash['next'] : SKIP # Create object from extracted values. ApiV1LabsSitesCbrsEdgeNodesResponse1.new(results, start, mend, limit, duration, total, mnext) end |
.names ⇒ Object
A mapping from model property names to API property names.
41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 41 def self.names @_hash = {} if @_hash.nil? @_hash['results'] = 'results' @_hash['start'] = 'start' @_hash['mend'] = 'end' @_hash['limit'] = 'limit' @_hash['duration'] = 'duration' @_hash['total'] = 'total' @_hash['mnext'] = 'next' @_hash end |
.nullables ⇒ Object
An array for nullable fields
67 68 69 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 67 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/untitled_api/models/api_v1_labs_sites_cbrs_edge_nodes_response1.rb', line 54 def self.optionals %w[ results start mend limit duration total mnext ] end |