Class: UntitledApi::ApiV1SitesMapsWayfindingImportRequest1

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb

Overview

ApiV1SitesMapsWayfindingImportRequest1 Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(vendor_name = SKIP, venue_id = SKIP, map_id = SKIP, ppm = SKIP, client_id = SKIP, client_secret = SKIP, customer_id = SKIP, endpoint_url = SKIP, mmpp = SKIP) ⇒ ApiV1SitesMapsWayfindingImportRequest1

Returns a new instance of ApiV1SitesMapsWayfindingImportRequest1.



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 83

def initialize(vendor_name = SKIP,
               venue_id = SKIP,
               map_id = SKIP,
               ppm = SKIP,
               client_id = SKIP,
               client_secret = SKIP,
               customer_id = SKIP,
               endpoint_url = SKIP,
               mmpp = SKIP)
  @vendor_name = vendor_name unless vendor_name == SKIP
  @venue_id = venue_id unless venue_id == SKIP
  @map_id = map_id unless map_id == SKIP
  @ppm = ppm unless ppm == SKIP
  @client_id = client_id unless client_id == SKIP
  @client_secret = client_secret unless client_secret == SKIP
  @customer_id = customer_id unless customer_id == SKIP
  @endpoint_url = endpoint_url unless endpoint_url == SKIP
  @mmpp = mmpp unless mmpp == SKIP
end

Instance Attribute Details

#client_idString

TODO: Write general description for this method

Returns:

  • (String)


30
31
32
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 30

def client_id
  @client_id
end

#client_secretString

TODO: Write general description for this method

Returns:

  • (String)


34
35
36
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 34

def client_secret
  @client_secret
end

#customer_idFloat

TODO: Write general description for this method

Returns:

  • (Float)


38
39
40
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 38

def customer_id
  @customer_id
end

#endpoint_urlString

TODO: Write general description for this method

Returns:

  • (String)


42
43
44
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 42

def endpoint_url
  @endpoint_url
end

#map_idString

TODO: Write general description for this method

Returns:

  • (String)


22
23
24
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 22

def map_id
  @map_id
end

#mmppFloat

TODO: Write general description for this method

Returns:

  • (Float)


46
47
48
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 46

def mmpp
  @mmpp
end

#ppmFloat

TODO: Write general description for this method

Returns:

  • (Float)


26
27
28
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 26

def ppm
  @ppm
end

#vendor_nameString

TODO: Write general description for this method

Returns:

  • (String)


14
15
16
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 14

def vendor_name
  @vendor_name
end

#venue_idFloat

TODO: Write general description for this method

Returns:

  • (Float)


18
19
20
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 18

def venue_id
  @venue_id
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 104

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  vendor_name = hash.key?('vendor_name') ? hash['vendor_name'] : SKIP
  venue_id = hash.key?('venue_id') ? hash['venue_id'] : SKIP
  map_id = hash.key?('map_id') ? hash['map_id'] : SKIP
  ppm = hash.key?('ppm') ? hash['ppm'] : SKIP
  client_id = hash.key?('client_id') ? hash['client_id'] : SKIP
  client_secret = hash.key?('client_secret') ? hash['client_secret'] : SKIP
  customer_id = hash.key?('customer_id') ? hash['customer_id'] : SKIP
  endpoint_url = hash.key?('endpoint_url') ? hash['endpoint_url'] : SKIP
  mmpp = hash.key?('mmpp') ? hash['mmpp'] : SKIP

  # Create object from extracted values.
  ApiV1SitesMapsWayfindingImportRequest1.new(vendor_name,
                                             venue_id,
                                             map_id,
                                             ppm,
                                             client_id,
                                             client_secret,
                                             customer_id,
                                             endpoint_url,
                                             mmpp)
end

.namesObject

A mapping from model property names to API property names.



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 49

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['vendor_name'] = 'vendor_name'
  @_hash['venue_id'] = 'venue_id'
  @_hash['map_id'] = 'map_id'
  @_hash['ppm'] = 'ppm'
  @_hash['client_id'] = 'client_id'
  @_hash['client_secret'] = 'client_secret'
  @_hash['customer_id'] = 'customer_id'
  @_hash['endpoint_url'] = 'endpoint_url'
  @_hash['mmpp'] = 'mmpp'
  @_hash
end

.nullablesObject

An array for nullable fields



79
80
81
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 79

def self.nullables
  []
end

.optionalsObject

An array for optional fields



64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/untitled_api/models/api_v1_sites_maps_wayfinding_import_request1.rb', line 64

def self.optionals
  %w[
    vendor_name
    venue_id
    map_id
    ppm
    client_id
    client_secret
    customer_id
    endpoint_url
    mmpp
  ]
end