Class: Verizon::GetWirelessCoverageRequestFWA
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- Verizon::GetWirelessCoverageRequestFWA
- Defined in:
- lib/verizon/models/get_wireless_coverage_request_fwa.rb
Overview
Get wireless coverage FWA.
Instance Attribute Summary collapse
-
#account_name ⇒ String
Account name.
-
#location_type ⇒ String
Type of location detail.
-
#locations ⇒ Locations
Location details.
-
#network_types_list ⇒ Array[NetworkType]
Location details.
-
#request_type ⇒ String
Type of request.
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(account_name = nil, request_type = nil, location_type = nil, locations = nil, network_types_list = nil) ⇒ GetWirelessCoverageRequestFWA
constructor
A new instance of GetWirelessCoverageRequestFWA.
Methods inherited from BaseModel
Constructor Details
#initialize(account_name = nil, request_type = nil, location_type = nil, locations = nil, network_types_list = nil) ⇒ GetWirelessCoverageRequestFWA
Returns a new instance of GetWirelessCoverageRequestFWA.
53 54 55 56 57 58 59 60 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 53 def initialize(account_name = nil, request_type = nil, location_type = nil, locations = nil, network_types_list = nil) @account_name = account_name @request_type = request_type @location_type = location_type @locations = locations @network_types_list = network_types_list end |
Instance Attribute Details
#account_name ⇒ String
Account name.
14 15 16 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 14 def account_name @account_name end |
#location_type ⇒ String
Type of location detail.
22 23 24 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 22 def location_type @location_type end |
#locations ⇒ Locations
Location details.
26 27 28 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 26 def locations @locations end |
#network_types_list ⇒ Array[NetworkType]
Location details.
30 31 32 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 30 def network_types_list @network_types_list end |
#request_type ⇒ String
Type of request.
18 19 20 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 18 def request_type @request_type end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 63 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. account_name = hash.key?('accountName') ? hash['accountName'] : nil request_type = hash.key?('requestType') ? hash['requestType'] : nil location_type = hash.key?('locationType') ? hash['locationType'] : nil locations = Locations.from_hash(hash['locations']) if hash['locations'] # Parameter is an array, so we need to iterate through it network_types_list = nil unless hash['networkTypesList'].nil? network_types_list = [] hash['networkTypesList'].each do |structure| network_types_list << (NetworkType.from_hash(structure) if structure) end end network_types_list = nil unless hash.key?('networkTypesList') # Create object from extracted values. GetWirelessCoverageRequestFWA.new(account_name, request_type, location_type, locations, network_types_list) end |
.names ⇒ Object
A mapping from model property names to API property names.
33 34 35 36 37 38 39 40 41 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 33 def self.names @_hash = {} if @_hash.nil? @_hash['account_name'] = 'accountName' @_hash['request_type'] = 'requestType' @_hash['location_type'] = 'locationType' @_hash['locations'] = 'locations' @_hash['network_types_list'] = 'networkTypesList' @_hash end |
.nullables ⇒ Object
An array for nullable fields
49 50 51 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 49 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
44 45 46 |
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 44 def self.optionals [] end |