Class: Edoxen::Venue
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Edoxen::Venue
- Defined in:
- lib/edoxen/venue.rb,
sig/edoxen.rbs
Overview
Venue.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_notes ⇒ String?
readonly
Returns the value of attribute access_notes.
-
#address ⇒ String?
readonly
Returns the value of attribute address.
-
#building ⇒ String?
readonly
Returns the value of attribute building.
-
#capacity ⇒ Integer?
readonly
Returns the value of attribute capacity.
-
#city ⇒ String?
readonly
Returns the value of attribute city.
-
#country_code ⇒ String?
readonly
Returns the value of attribute country_code.
-
#description ⇒ String?
readonly
Returns the value of attribute description.
-
#dial_in_numbers ⇒ Array[String]?
readonly
Returns the value of attribute dial_in_numbers.
-
#features ⇒ Array[String]?
readonly
Returns the value of attribute features.
-
#floor ⇒ String?
readonly
Returns the value of attribute floor.
-
#iata_code ⇒ String?
readonly
Returns the value of attribute iata_code.
-
#kind ⇒ String?
readonly
Returns the value of attribute kind.
-
#label ⇒ String?
readonly
Returns the value of attribute label.
-
#lat ⇒ Float?
readonly
Returns the value of attribute lat.
-
#lon ⇒ Float?
readonly
Returns the value of attribute lon.
-
#meeting_id ⇒ String?
readonly
Returns the value of attribute meeting_id.
-
#name ⇒ String?
readonly
Returns the value of attribute name.
-
#passcode ⇒ String?
readonly
Returns the value of attribute passcode.
-
#registration_required ⇒ Boolean?
readonly
Returns the value of attribute registration_required.
-
#room ⇒ String?
readonly
Returns the value of attribute room.
-
#unlocode ⇒ String?
readonly
Returns the value of attribute unlocode.
-
#uri ⇒ String?
readonly
Returns the value of attribute uri.
-
#url ⇒ String?
readonly
Returns the value of attribute url.
-
#waiting_room ⇒ Boolean?
readonly
Returns the value of attribute waiting_room.
Instance Method Summary collapse
- #features_list ⇒ String
- #iata_entry ⇒ Object
- #physical? ⇒ Boolean
-
#unlocode_entry ⇒ Object
Resolve the UN/LOCODE entry via the canonical
unlocodesgem. - #virtual? ⇒ Boolean
Instance Attribute Details
#access_notes ⇒ String? (readonly)
Returns the value of attribute access_notes.
305 306 307 |
# File 'sig/edoxen.rbs', line 305 def access_notes @access_notes end |
#address ⇒ String? (readonly)
Returns the value of attribute address.
297 298 299 |
# File 'sig/edoxen.rbs', line 297 def address @address end |
#building ⇒ String? (readonly)
Returns the value of attribute building.
302 303 304 |
# File 'sig/edoxen.rbs', line 302 def building @building end |
#capacity ⇒ Integer? (readonly)
Returns the value of attribute capacity.
293 294 295 |
# File 'sig/edoxen.rbs', line 293 def capacity @capacity end |
#city ⇒ String? (readonly)
Returns the value of attribute city.
298 299 300 |
# File 'sig/edoxen.rbs', line 298 def city @city end |
#country_code ⇒ String? (readonly)
Returns the value of attribute country_code.
299 300 301 |
# File 'sig/edoxen.rbs', line 299 def country_code @country_code end |
#description ⇒ String? (readonly)
Returns the value of attribute description.
292 293 294 |
# File 'sig/edoxen.rbs', line 292 def description @description end |
#dial_in_numbers ⇒ Array[String]? (readonly)
Returns the value of attribute dial_in_numbers.
310 311 312 |
# File 'sig/edoxen.rbs', line 310 def dial_in_numbers @dial_in_numbers end |
#features ⇒ Array[String]? (readonly)
Returns the value of attribute features.
307 308 309 |
# File 'sig/edoxen.rbs', line 307 def features @features end |
#floor ⇒ String? (readonly)
Returns the value of attribute floor.
303 304 305 |
# File 'sig/edoxen.rbs', line 303 def floor @floor end |
#iata_code ⇒ String? (readonly)
Returns the value of attribute iata_code.
296 297 298 |
# File 'sig/edoxen.rbs', line 296 def iata_code @iata_code end |
#kind ⇒ String? (readonly)
Returns the value of attribute kind.
289 290 291 |
# File 'sig/edoxen.rbs', line 289 def kind @kind end |
#label ⇒ String? (readonly)
Returns the value of attribute label.
291 292 293 |
# File 'sig/edoxen.rbs', line 291 def label @label end |
#lat ⇒ Float? (readonly)
Returns the value of attribute lat.
300 301 302 |
# File 'sig/edoxen.rbs', line 300 def lat @lat end |
#lon ⇒ Float? (readonly)
Returns the value of attribute lon.
301 302 303 |
# File 'sig/edoxen.rbs', line 301 def lon @lon end |
#meeting_id ⇒ String? (readonly)
Returns the value of attribute meeting_id.
309 310 311 |
# File 'sig/edoxen.rbs', line 309 def meeting_id @meeting_id end |
#name ⇒ String? (readonly)
Returns the value of attribute name.
290 291 292 |
# File 'sig/edoxen.rbs', line 290 def name @name end |
#passcode ⇒ String? (readonly)
Returns the value of attribute passcode.
308 309 310 |
# File 'sig/edoxen.rbs', line 308 def passcode @passcode end |
#registration_required ⇒ Boolean? (readonly)
Returns the value of attribute registration_required.
312 313 314 |
# File 'sig/edoxen.rbs', line 312 def registration_required @registration_required end |
#room ⇒ String? (readonly)
Returns the value of attribute room.
304 305 306 |
# File 'sig/edoxen.rbs', line 304 def room @room end |
#unlocode ⇒ String? (readonly)
Returns the value of attribute unlocode.
295 296 297 |
# File 'sig/edoxen.rbs', line 295 def unlocode @unlocode end |
#uri ⇒ String? (readonly)
Returns the value of attribute uri.
306 307 308 |
# File 'sig/edoxen.rbs', line 306 def uri @uri end |
#url ⇒ String? (readonly)
Returns the value of attribute url.
294 295 296 |
# File 'sig/edoxen.rbs', line 294 def url @url end |
#waiting_room ⇒ Boolean? (readonly)
Returns the value of attribute waiting_room.
311 312 313 |
# File 'sig/edoxen.rbs', line 311 def waiting_room @waiting_room end |
Instance Method Details
#features_list ⇒ 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_entry ⇒ 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
52 53 54 |
# File 'lib/edoxen/venue.rb', line 52 def physical? kind == "physical" end |
#unlocode_entry ⇒ Object
Resolve the UN/LOCODE entry via the canonical unlocodes gem.
Returns an Unlocodes::Entry or nil when the code is empty / unknown.
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
56 57 58 |
# File 'lib/edoxen/venue.rb', line 56 def virtual? kind == "virtual" end |