Class: Verizon::GetWirelessCoverageRequestFWA

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/verizon/models/get_wireless_coverage_request_fwa.rb

Overview

Get wireless coverage FWA.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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( = nil, request_type = nil, location_type = nil,
               locations = nil, network_types_list = nil)
  @account_name = 
  @request_type = request_type
  @location_type = location_type
  @locations = locations
  @network_types_list = network_types_list
end

Instance Attribute Details

#account_nameString

Account name.

Returns:

  • (String)


14
15
16
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 14

def 
  @account_name
end

#location_typeString

Type of location detail.

Returns:

  • (String)


22
23
24
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 22

def location_type
  @location_type
end

#locationsLocations

Location details.

Returns:



26
27
28
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 26

def locations
  @locations
end

#network_types_listArray[NetworkType]

Location details.

Returns:



30
31
32
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 30

def network_types_list
  @network_types_list
end

#request_typeString

Type of request.

Returns:

  • (String)


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.
   = 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(,
                                    request_type,
                                    location_type,
                                    locations,
                                    network_types_list)
end

.namesObject

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

.nullablesObject

An array for nullable fields



49
50
51
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 49

def self.nullables
  []
end

.optionalsObject

An array for optional fields



44
45
46
# File 'lib/verizon/models/get_wireless_coverage_request_fwa.rb', line 44

def self.optionals
  []
end