Class: Edoxen::Venue

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/edoxen/venue.rb,
sig/edoxen.rbs

Overview

Venue.

Direct Known Subclasses

PhysicalVenue, VirtualVenue

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_notesString? (readonly)

Returns the value of attribute access_notes.

Returns:

  • (String, nil)


305
306
307
# File 'sig/edoxen.rbs', line 305

def access_notes
  @access_notes
end

#addressString? (readonly)

Returns the value of attribute address.

Returns:

  • (String, nil)


297
298
299
# File 'sig/edoxen.rbs', line 297

def address
  @address
end

#buildingString? (readonly)

Returns the value of attribute building.

Returns:

  • (String, nil)


302
303
304
# File 'sig/edoxen.rbs', line 302

def building
  @building
end

#capacityInteger? (readonly)

Returns the value of attribute capacity.

Returns:

  • (Integer, nil)


293
294
295
# File 'sig/edoxen.rbs', line 293

def capacity
  @capacity
end

#cityString? (readonly)

Returns the value of attribute city.

Returns:

  • (String, nil)


298
299
300
# File 'sig/edoxen.rbs', line 298

def city
  @city
end

#country_codeString? (readonly)

Returns the value of attribute country_code.

Returns:

  • (String, nil)


299
300
301
# File 'sig/edoxen.rbs', line 299

def country_code
  @country_code
end

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


292
293
294
# File 'sig/edoxen.rbs', line 292

def description
  @description
end

#dial_in_numbersArray[String]? (readonly)

Returns the value of attribute dial_in_numbers.

Returns:

  • (Array[String], nil)


310
311
312
# File 'sig/edoxen.rbs', line 310

def dial_in_numbers
  @dial_in_numbers
end

#featuresArray[String]? (readonly)

Returns the value of attribute features.

Returns:

  • (Array[String], nil)


307
308
309
# File 'sig/edoxen.rbs', line 307

def features
  @features
end

#floorString? (readonly)

Returns the value of attribute floor.

Returns:

  • (String, nil)


303
304
305
# File 'sig/edoxen.rbs', line 303

def floor
  @floor
end

#iata_codeString? (readonly)

Returns the value of attribute iata_code.

Returns:

  • (String, nil)


296
297
298
# File 'sig/edoxen.rbs', line 296

def iata_code
  @iata_code
end

#kindString? (readonly)

Returns the value of attribute kind.

Returns:

  • (String, nil)


289
290
291
# File 'sig/edoxen.rbs', line 289

def kind
  @kind
end

#labelString? (readonly)

Returns the value of attribute label.

Returns:

  • (String, nil)


291
292
293
# File 'sig/edoxen.rbs', line 291

def label
  @label
end

#latFloat? (readonly)

Returns the value of attribute lat.

Returns:

  • (Float, nil)


300
301
302
# File 'sig/edoxen.rbs', line 300

def lat
  @lat
end

#lonFloat? (readonly)

Returns the value of attribute lon.

Returns:

  • (Float, nil)


301
302
303
# File 'sig/edoxen.rbs', line 301

def lon
  @lon
end

#meeting_idString? (readonly)

Returns the value of attribute meeting_id.

Returns:

  • (String, nil)


309
310
311
# File 'sig/edoxen.rbs', line 309

def meeting_id
  @meeting_id
end

#nameString? (readonly)

Returns the value of attribute name.

Returns:

  • (String, nil)


290
291
292
# File 'sig/edoxen.rbs', line 290

def name
  @name
end

#passcodeString? (readonly)

Returns the value of attribute passcode.

Returns:

  • (String, nil)


308
309
310
# File 'sig/edoxen.rbs', line 308

def passcode
  @passcode
end

#registration_requiredBoolean? (readonly)

Returns the value of attribute registration_required.

Returns:

  • (Boolean, nil)


312
313
314
# File 'sig/edoxen.rbs', line 312

def registration_required
  @registration_required
end

#roomString? (readonly)

Returns the value of attribute room.

Returns:

  • (String, nil)


304
305
306
# File 'sig/edoxen.rbs', line 304

def room
  @room
end

#unlocodeString? (readonly)

Returns the value of attribute unlocode.

Returns:

  • (String, nil)


295
296
297
# File 'sig/edoxen.rbs', line 295

def unlocode
  @unlocode
end

#uriString? (readonly)

Returns the value of attribute uri.

Returns:

  • (String, nil)


306
307
308
# File 'sig/edoxen.rbs', line 306

def uri
  @uri
end

#urlString? (readonly)

Returns the value of attribute url.

Returns:

  • (String, nil)


294
295
296
# File 'sig/edoxen.rbs', line 294

def url
  @url
end

#waiting_roomBoolean? (readonly)

Returns the value of attribute waiting_room.

Returns:

  • (Boolean, nil)


311
312
313
# File 'sig/edoxen.rbs', line 311

def waiting_room
  @waiting_room
end

Instance Method Details

#features_listString

Returns:

  • (String)


74
75
76
77
78
# File 'lib/edoxen/venue.rb', line 74

def features_list
  return "" if features.nil? || features.empty?

  features.join(", ")
end

#iata_entryObject

Returns:

  • (Object)


68
69
70
71
72
# File 'lib/edoxen/venue.rb', line 68

def iata_entry
  return nil if iata_code.nil? || iata_code.to_s.empty?

  Edoxen::ReferenceData.find_iata(iata_code)
end

#physical?Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/edoxen/venue.rb', line 52

def physical?
  kind == "physical"
end

#unlocode_entryObject

Resolve the UN/LOCODE entry via the canonical unlocodes gem. Returns an Unlocodes::Entry or nil when the code is empty / unknown.

Returns:

  • (Object)


62
63
64
65
66
# File 'lib/edoxen/venue.rb', line 62

def unlocode_entry
  return nil if unlocode.nil? || unlocode.to_s.empty?

  Edoxen::ReferenceData.find_unlocode(unlocode)
end

#virtual?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/edoxen/venue.rb', line 56

def virtual?
  kind == "virtual"
end