Class: BmltClient::MeetingCreate
- Inherits:
-
Object
- Object
- BmltClient::MeetingCreate
- Defined in:
- lib/BmltClient/models/meeting_create.rb
Instance Attribute Summary collapse
-
#bus_lines ⇒ Object
Returns the value of attribute bus_lines.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#contact_email_1 ⇒ Object
Returns the value of attribute contact_email_1.
-
#contact_email_2 ⇒ Object
Returns the value of attribute contact_email_2.
-
#contact_name_1 ⇒ Object
Returns the value of attribute contact_name_1.
-
#contact_name_2 ⇒ Object
Returns the value of attribute contact_name_2.
-
#contact_phone_1 ⇒ Object
Returns the value of attribute contact_phone_1.
-
#contact_phone_2 ⇒ Object
Returns the value of attribute contact_phone_2.
-
#day ⇒ Object
Returns the value of attribute day.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#email ⇒ Object
Returns the value of attribute email.
-
#format_ids ⇒ Object
Returns the value of attribute format_ids.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#location_city_subsection ⇒ Object
Returns the value of attribute location_city_subsection.
-
#location_info ⇒ Object
Returns the value of attribute location_info.
-
#location_municipality ⇒ Object
Returns the value of attribute location_municipality.
-
#location_nation ⇒ Object
Returns the value of attribute location_nation.
-
#location_neighborhood ⇒ Object
Returns the value of attribute location_neighborhood.
-
#location_postal_code_1 ⇒ Object
Returns the value of attribute location_postal_code_1.
-
#location_province ⇒ Object
Returns the value of attribute location_province.
-
#location_street ⇒ Object
Returns the value of attribute location_street.
-
#location_sub_province ⇒ Object
Returns the value of attribute location_sub_province.
-
#location_text ⇒ Object
Returns the value of attribute location_text.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone_meeting_number ⇒ Object
Returns the value of attribute phone_meeting_number.
-
#published ⇒ Object
Returns the value of attribute published.
-
#service_body_id ⇒ Object
Returns the value of attribute service_body_id.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#temporarily_virtual ⇒ Object
Returns the value of attribute temporarily_virtual.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#train_line ⇒ Object
Returns the value of attribute train_line.
-
#venue_type ⇒ Object
Returns the value of attribute venue_type.
-
#virtual_meeting_additional_info ⇒ Object
Returns the value of attribute virtual_meeting_additional_info.
-
#virtual_meeting_link ⇒ Object
Returns the value of attribute virtual_meeting_link.
-
#world_id ⇒ Object
Returns the value of attribute world_id.
Class Method Summary collapse
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3).
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ MeetingCreate
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ MeetingCreate
Initializes the object
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 |
# File 'lib/BmltClient/models/meeting_create.rb', line 194 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `BmltClient::MeetingCreate` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `BmltClient::MeetingCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'service_body_id') self.service_body_id = attributes[:'service_body_id'] end if attributes.key?(:'format_ids') if (value = attributes[:'format_ids']).is_a?(Array) self.format_ids = value end end if attributes.key?(:'venue_type') self.venue_type = attributes[:'venue_type'] end if attributes.key?(:'temporarily_virtual') self.temporarily_virtual = attributes[:'temporarily_virtual'] end if attributes.key?(:'day') self.day = attributes[:'day'] end if attributes.key?(:'start_time') self.start_time = attributes[:'start_time'] end if attributes.key?(:'duration') self.duration = attributes[:'duration'] end if attributes.key?(:'time_zone') self.time_zone = attributes[:'time_zone'] end if attributes.key?(:'latitude') self.latitude = attributes[:'latitude'] end if attributes.key?(:'longitude') self.longitude = attributes[:'longitude'] end if attributes.key?(:'published') self.published = attributes[:'published'] end if attributes.key?(:'email') self.email = attributes[:'email'] end if attributes.key?(:'world_id') self.world_id = attributes[:'world_id'] end if attributes.key?(:'name') self.name = attributes[:'name'] end if attributes.key?(:'location_text') self.location_text = attributes[:'location_text'] end if attributes.key?(:'location_info') self.location_info = attributes[:'location_info'] end if attributes.key?(:'location_street') self.location_street = attributes[:'location_street'] end if attributes.key?(:'location_neighborhood') self.location_neighborhood = attributes[:'location_neighborhood'] end if attributes.key?(:'location_city_subsection') self.location_city_subsection = attributes[:'location_city_subsection'] end if attributes.key?(:'location_municipality') self.location_municipality = attributes[:'location_municipality'] end if attributes.key?(:'location_sub_province') self.location_sub_province = attributes[:'location_sub_province'] end if attributes.key?(:'location_province') self.location_province = attributes[:'location_province'] end if attributes.key?(:'location_postal_code_1') self.location_postal_code_1 = attributes[:'location_postal_code_1'] end if attributes.key?(:'location_nation') self.location_nation = attributes[:'location_nation'] end if attributes.key?(:'phone_meeting_number') self.phone_meeting_number = attributes[:'phone_meeting_number'] end if attributes.key?(:'virtual_meeting_link') self.virtual_meeting_link = attributes[:'virtual_meeting_link'] end if attributes.key?(:'virtual_meeting_additional_info') self.virtual_meeting_additional_info = attributes[:'virtual_meeting_additional_info'] end if attributes.key?(:'contact_name_1') self.contact_name_1 = attributes[:'contact_name_1'] end if attributes.key?(:'contact_name_2') self.contact_name_2 = attributes[:'contact_name_2'] end if attributes.key?(:'contact_phone_1') self.contact_phone_1 = attributes[:'contact_phone_1'] end if attributes.key?(:'contact_phone_2') self.contact_phone_2 = attributes[:'contact_phone_2'] end if attributes.key?(:'contact_email_1') self.contact_email_1 = attributes[:'contact_email_1'] end if attributes.key?(:'contact_email_2') self.contact_email_2 = attributes[:'contact_email_2'] end if attributes.key?(:'bus_lines') self.bus_lines = attributes[:'bus_lines'] end if attributes.key?(:'train_line') self.train_line = attributes[:'train_line'] end if attributes.key?(:'comments') self.comments = attributes[:'comments'] end end |
Instance Attribute Details
#bus_lines ⇒ Object
Returns the value of attribute bus_lines.
84 85 86 |
# File 'lib/BmltClient/models/meeting_create.rb', line 84 def bus_lines @bus_lines end |
#comments ⇒ Object
Returns the value of attribute comments.
88 89 90 |
# File 'lib/BmltClient/models/meeting_create.rb', line 88 def comments @comments end |
#contact_email_1 ⇒ Object
Returns the value of attribute contact_email_1.
80 81 82 |
# File 'lib/BmltClient/models/meeting_create.rb', line 80 def contact_email_1 @contact_email_1 end |
#contact_email_2 ⇒ Object
Returns the value of attribute contact_email_2.
82 83 84 |
# File 'lib/BmltClient/models/meeting_create.rb', line 82 def contact_email_2 @contact_email_2 end |
#contact_name_1 ⇒ Object
Returns the value of attribute contact_name_1.
72 73 74 |
# File 'lib/BmltClient/models/meeting_create.rb', line 72 def contact_name_1 @contact_name_1 end |
#contact_name_2 ⇒ Object
Returns the value of attribute contact_name_2.
74 75 76 |
# File 'lib/BmltClient/models/meeting_create.rb', line 74 def contact_name_2 @contact_name_2 end |
#contact_phone_1 ⇒ Object
Returns the value of attribute contact_phone_1.
76 77 78 |
# File 'lib/BmltClient/models/meeting_create.rb', line 76 def contact_phone_1 @contact_phone_1 end |
#contact_phone_2 ⇒ Object
Returns the value of attribute contact_phone_2.
78 79 80 |
# File 'lib/BmltClient/models/meeting_create.rb', line 78 def contact_phone_2 @contact_phone_2 end |
#day ⇒ Object
Returns the value of attribute day.
26 27 28 |
# File 'lib/BmltClient/models/meeting_create.rb', line 26 def day @day end |
#duration ⇒ Object
Returns the value of attribute duration.
30 31 32 |
# File 'lib/BmltClient/models/meeting_create.rb', line 30 def duration @duration end |
#email ⇒ Object
Returns the value of attribute email.
40 41 42 |
# File 'lib/BmltClient/models/meeting_create.rb', line 40 def email @email end |
#format_ids ⇒ Object
Returns the value of attribute format_ids.
20 21 22 |
# File 'lib/BmltClient/models/meeting_create.rb', line 20 def format_ids @format_ids end |
#latitude ⇒ Object
Returns the value of attribute latitude.
34 35 36 |
# File 'lib/BmltClient/models/meeting_create.rb', line 34 def latitude @latitude end |
#location_city_subsection ⇒ Object
Returns the value of attribute location_city_subsection.
54 55 56 |
# File 'lib/BmltClient/models/meeting_create.rb', line 54 def location_city_subsection @location_city_subsection end |
#location_info ⇒ Object
Returns the value of attribute location_info.
48 49 50 |
# File 'lib/BmltClient/models/meeting_create.rb', line 48 def location_info @location_info end |
#location_municipality ⇒ Object
Returns the value of attribute location_municipality.
56 57 58 |
# File 'lib/BmltClient/models/meeting_create.rb', line 56 def location_municipality @location_municipality end |
#location_nation ⇒ Object
Returns the value of attribute location_nation.
64 65 66 |
# File 'lib/BmltClient/models/meeting_create.rb', line 64 def location_nation @location_nation end |
#location_neighborhood ⇒ Object
Returns the value of attribute location_neighborhood.
52 53 54 |
# File 'lib/BmltClient/models/meeting_create.rb', line 52 def location_neighborhood @location_neighborhood end |
#location_postal_code_1 ⇒ Object
Returns the value of attribute location_postal_code_1.
62 63 64 |
# File 'lib/BmltClient/models/meeting_create.rb', line 62 def location_postal_code_1 @location_postal_code_1 end |
#location_province ⇒ Object
Returns the value of attribute location_province.
60 61 62 |
# File 'lib/BmltClient/models/meeting_create.rb', line 60 def location_province @location_province end |
#location_street ⇒ Object
Returns the value of attribute location_street.
50 51 52 |
# File 'lib/BmltClient/models/meeting_create.rb', line 50 def location_street @location_street end |
#location_sub_province ⇒ Object
Returns the value of attribute location_sub_province.
58 59 60 |
# File 'lib/BmltClient/models/meeting_create.rb', line 58 def location_sub_province @location_sub_province end |
#location_text ⇒ Object
Returns the value of attribute location_text.
46 47 48 |
# File 'lib/BmltClient/models/meeting_create.rb', line 46 def location_text @location_text end |
#longitude ⇒ Object
Returns the value of attribute longitude.
36 37 38 |
# File 'lib/BmltClient/models/meeting_create.rb', line 36 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
44 45 46 |
# File 'lib/BmltClient/models/meeting_create.rb', line 44 def name @name end |
#phone_meeting_number ⇒ Object
Returns the value of attribute phone_meeting_number.
66 67 68 |
# File 'lib/BmltClient/models/meeting_create.rb', line 66 def phone_meeting_number @phone_meeting_number end |
#published ⇒ Object
Returns the value of attribute published.
38 39 40 |
# File 'lib/BmltClient/models/meeting_create.rb', line 38 def published @published end |
#service_body_id ⇒ Object
Returns the value of attribute service_body_id.
18 19 20 |
# File 'lib/BmltClient/models/meeting_create.rb', line 18 def service_body_id @service_body_id end |
#start_time ⇒ Object
Returns the value of attribute start_time.
28 29 30 |
# File 'lib/BmltClient/models/meeting_create.rb', line 28 def start_time @start_time end |
#temporarily_virtual ⇒ Object
Returns the value of attribute temporarily_virtual.
24 25 26 |
# File 'lib/BmltClient/models/meeting_create.rb', line 24 def temporarily_virtual @temporarily_virtual end |
#time_zone ⇒ Object
Returns the value of attribute time_zone.
32 33 34 |
# File 'lib/BmltClient/models/meeting_create.rb', line 32 def time_zone @time_zone end |
#train_line ⇒ Object
Returns the value of attribute train_line.
86 87 88 |
# File 'lib/BmltClient/models/meeting_create.rb', line 86 def train_line @train_line end |
#venue_type ⇒ Object
Returns the value of attribute venue_type.
22 23 24 |
# File 'lib/BmltClient/models/meeting_create.rb', line 22 def venue_type @venue_type end |
#virtual_meeting_additional_info ⇒ Object
Returns the value of attribute virtual_meeting_additional_info.
70 71 72 |
# File 'lib/BmltClient/models/meeting_create.rb', line 70 def virtual_meeting_additional_info @virtual_meeting_additional_info end |
#virtual_meeting_link ⇒ Object
Returns the value of attribute virtual_meeting_link.
68 69 70 |
# File 'lib/BmltClient/models/meeting_create.rb', line 68 def virtual_meeting_link @virtual_meeting_link end |
#world_id ⇒ Object
Returns the value of attribute world_id.
42 43 44 |
# File 'lib/BmltClient/models/meeting_create.rb', line 42 def world_id @world_id end |
Class Method Details
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
133 134 135 |
# File 'lib/BmltClient/models/meeting_create.rb', line 133 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
91 92 93 94 95 96 97 98 99 100 101 102 103 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 129 130 |
# File 'lib/BmltClient/models/meeting_create.rb', line 91 def self.attribute_map { :'service_body_id' => :'serviceBodyId', :'format_ids' => :'formatIds', :'venue_type' => :'venueType', :'temporarily_virtual' => :'temporarilyVirtual', :'day' => :'day', :'start_time' => :'startTime', :'duration' => :'duration', :'time_zone' => :'timeZone', :'latitude' => :'latitude', :'longitude' => :'longitude', :'published' => :'published', :'email' => :'email', :'world_id' => :'worldId', :'name' => :'name', :'location_text' => :'location_text', :'location_info' => :'location_info', :'location_street' => :'location_street', :'location_neighborhood' => :'location_neighborhood', :'location_city_subsection' => :'location_city_subsection', :'location_municipality' => :'location_municipality', :'location_sub_province' => :'location_sub_province', :'location_province' => :'location_province', :'location_postal_code_1' => :'location_postal_code_1', :'location_nation' => :'location_nation', :'phone_meeting_number' => :'phone_meeting_number', :'virtual_meeting_link' => :'virtual_meeting_link', :'virtual_meeting_additional_info' => :'virtual_meeting_additional_info', :'contact_name_1' => :'contact_name_1', :'contact_name_2' => :'contact_name_2', :'contact_phone_1' => :'contact_phone_1', :'contact_phone_2' => :'contact_phone_2', :'contact_email_1' => :'contact_email_1', :'contact_email_2' => :'contact_email_2', :'bus_lines' => :'bus_lines', :'train_line' => :'train_line', :'comments' => :'comments' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
475 476 477 |
# File 'lib/BmltClient/models/meeting_create.rb', line 475 def self.build_from_hash(attributes) new.build_from_hash(attributes) end |
.openapi_all_of ⇒ Object
List of class defined in allOf (OpenAPI v3)
186 187 188 189 190 |
# File 'lib/BmltClient/models/meeting_create.rb', line 186 def self.openapi_all_of [ :'MeetingBase' ] end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
180 181 182 183 |
# File 'lib/BmltClient/models/meeting_create.rb', line 180 def self.openapi_nullable Set.new([ ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/BmltClient/models/meeting_create.rb', line 138 def self.openapi_types { :'service_body_id' => :'Integer', :'format_ids' => :'Array<Integer>', :'venue_type' => :'Integer', :'temporarily_virtual' => :'Boolean', :'day' => :'Integer', :'start_time' => :'String', :'duration' => :'String', :'time_zone' => :'String', :'latitude' => :'Float', :'longitude' => :'Float', :'published' => :'Boolean', :'email' => :'String', :'world_id' => :'String', :'name' => :'String', :'location_text' => :'String', :'location_info' => :'String', :'location_street' => :'String', :'location_neighborhood' => :'String', :'location_city_subsection' => :'String', :'location_municipality' => :'String', :'location_sub_province' => :'String', :'location_province' => :'String', :'location_postal_code_1' => :'String', :'location_nation' => :'String', :'phone_meeting_number' => :'String', :'virtual_meeting_link' => :'String', :'virtual_meeting_additional_info' => :'String', :'contact_name_1' => :'String', :'contact_name_2' => :'String', :'contact_phone_1' => :'String', :'contact_phone_2' => :'String', :'contact_email_1' => :'String', :'contact_email_2' => :'String', :'bus_lines' => :'String', :'train_line' => :'String', :'comments' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 |
# File 'lib/BmltClient/models/meeting_create.rb', line 419 def ==(o) return true if self.equal?(o) self.class == o.class && service_body_id == o.service_body_id && format_ids == o.format_ids && venue_type == o.venue_type && temporarily_virtual == o.temporarily_virtual && day == o.day && start_time == o.start_time && duration == o.duration && time_zone == o.time_zone && latitude == o.latitude && longitude == o.longitude && published == o.published && email == o.email && world_id == o.world_id && name == o.name && location_text == o.location_text && location_info == o.location_info && location_street == o.location_street && location_neighborhood == o.location_neighborhood && location_city_subsection == o.location_city_subsection && location_municipality == o.location_municipality && location_sub_province == o.location_sub_province && location_province == o.location_province && location_postal_code_1 == o.location_postal_code_1 && location_nation == o.location_nation && phone_meeting_number == o.phone_meeting_number && virtual_meeting_link == o.virtual_meeting_link && virtual_meeting_additional_info == o.virtual_meeting_additional_info && contact_name_1 == o.contact_name_1 && contact_name_2 == o.contact_name_2 && contact_phone_1 == o.contact_phone_1 && contact_phone_2 == o.contact_phone_2 && contact_email_1 == o.contact_email_1 && contact_email_2 == o.contact_email_2 && bus_lines == o.bus_lines && train_line == o.train_line && comments == o.comments end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/BmltClient/models/meeting_create.rb', line 506 def _deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = BmltClient.const_get(type) klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
577 578 579 580 581 582 583 584 585 586 587 588 589 |
# File 'lib/BmltClient/models/meeting_create.rb', line 577 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 |
# File 'lib/BmltClient/models/meeting_create.rb', line 482 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) self.class.openapi_types.each_pair do |key, type| if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) self.send("#{key}=", nil) elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end end self end |
#eql?(o) ⇒ Boolean
462 463 464 |
# File 'lib/BmltClient/models/meeting_create.rb', line 462 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
468 469 470 |
# File 'lib/BmltClient/models/meeting_create.rb', line 468 def hash [service_body_id, format_ids, venue_type, temporarily_virtual, day, start_time, duration, time_zone, latitude, longitude, published, email, world_id, name, location_text, location_info, location_street, location_neighborhood, location_city_subsection, location_municipality, location_sub_province, location_province, location_postal_code_1, location_nation, phone_meeting_number, virtual_meeting_link, virtual_meeting_additional_info, contact_name_1, contact_name_2, contact_phone_1, contact_phone_2, contact_email_1, contact_email_2, bus_lines, train_line, comments].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 |
# File 'lib/BmltClient/models/meeting_create.rb', line 356 def list_invalid_properties invalid_properties = Array.new if @service_body_id.nil? invalid_properties.push('invalid value for "service_body_id", service_body_id cannot be nil.') end if @format_ids.nil? invalid_properties.push('invalid value for "format_ids", format_ids cannot be nil.') end if @venue_type.nil? invalid_properties.push('invalid value for "venue_type", venue_type cannot be nil.') end if @day.nil? invalid_properties.push('invalid value for "day", day cannot be nil.') end if @start_time.nil? invalid_properties.push('invalid value for "start_time", start_time cannot be nil.') end if @duration.nil? invalid_properties.push('invalid value for "duration", duration cannot be nil.') end if @latitude.nil? invalid_properties.push('invalid value for "latitude", latitude cannot be nil.') end if @longitude.nil? invalid_properties.push('invalid value for "longitude", longitude cannot be nil.') end if @published.nil? invalid_properties.push('invalid value for "published", published cannot be nil.') end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
553 554 555 |
# File 'lib/BmltClient/models/meeting_create.rb', line 553 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
559 560 561 562 563 564 565 566 567 568 569 570 571 |
# File 'lib/BmltClient/models/meeting_create.rb', line 559 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
547 548 549 |
# File 'lib/BmltClient/models/meeting_create.rb', line 547 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/BmltClient/models/meeting_create.rb', line 403 def valid? return false if @service_body_id.nil? return false if @format_ids.nil? return false if @venue_type.nil? return false if @day.nil? return false if @start_time.nil? return false if @duration.nil? return false if @latitude.nil? return false if @longitude.nil? return false if @published.nil? return false if @name.nil? true end |