Class: OpenActive::Models::Schema::Accommodation

Inherits:
Place show all
Defined in:
lib/openactive/models/schema/accommodation.rb

Direct Known Subclasses

Apartment, CampingPitch, House, Room, Suite

Instance Attribute Summary collapse

Attributes inherited from Place

#additional_property, #address, #aggregate_rating, #branch_code, #contained_in, #contained_in_place, #contains_place, #event, #events, #fax_number, #geo, #geo_contains, #geo_covered_by, #geo_covers, #geo_crosses, #geo_disjoint, #geo_equals, #geo_intersects, #geo_overlaps, #geo_touches, #geo_within, #global_location_number, #has_map, #is_accessible_for_free, #isic_v4, #latitude, #logo, #longitude, #map, #maps, #maximum_attendee_capacity, #opening_hours_specification, #photo, #photos, #public_access, #review, #reviews, #slogan, #smoking_allowed, #special_opening_hours_specification, #telephone

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#accommodation_categoryString

Returns:

  • (String)


12
13
14
# File 'lib/openactive/models/schema/accommodation.rb', line 12

def accommodation_category
  @accommodation_category
end

#amenity_featureOpenActive::Models::Schema::LocationFeatureSpecification



53
54
55
# File 'lib/openactive/models/schema/accommodation.rb', line 53

def amenity_feature
  @amenity_feature
end

#floor_levelString

Returns:

  • (String)


36
37
38
# File 'lib/openactive/models/schema/accommodation.rb', line 36

def floor_level
  @floor_level
end

#floor_sizeOpenActive::Models::Schema::QuantitativeValue



65
66
67
# File 'lib/openactive/models/schema/accommodation.rb', line 65

def floor_size
  @floor_size
end

#lease_lengthOpenActive::Models::Schema::QuantitativeValue, ...

Returns:



29
30
31
# File 'lib/openactive/models/schema/accommodation.rb', line 29

def lease_length
  @lease_length
end

#number_of_bathrooms_totalint?

Returns:

  • (int, nil)


23
24
25
# File 'lib/openactive/models/schema/accommodation.rb', line 23

def number_of_bathrooms_total
  @number_of_bathrooms_total
end

#number_of_full_bathroomsBigDecimal?

Returns:

  • (BigDecimal, nil)


17
18
19
# File 'lib/openactive/models/schema/accommodation.rb', line 17

def number_of_full_bathrooms
  @number_of_full_bathrooms
end

#number_of_roomsOpenActive::Models::Schema::QuantitativeValue, ...

Returns:



46
47
48
# File 'lib/openactive/models/schema/accommodation.rb', line 46

def number_of_rooms
  @number_of_rooms
end

#permitted_usageString

Returns:

  • (String)


41
42
43
# File 'lib/openactive/models/schema/accommodation.rb', line 41

def permitted_usage
  @permitted_usage
end

#pets_allowedString, ...

Returns:

  • (String, Boolean, nil)


58
59
60
# File 'lib/openactive/models/schema/accommodation.rb', line 58

def pets_allowed
  @pets_allowed
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/accommodation.rb', line 7

def type
  "schema:Accommodation"
end