Class: Rentlinx::PropertyAmenity

Inherits:
Base
  • Object
show all
Defined in:
lib/rentlinx/models/property_amenity.rb

Overview

An amenity on a propery

Direct Known Subclasses

UnitAmenity

Constant Summary collapse

ATTRIBUTES =
[:details, :name, :propertyID].freeze
REQUIRED_ATTRIBUTES =
[:name, :propertyID].freeze

Instance Method Summary collapse

Methods inherited from Base

#attributes, get_from_id, #initialize, #patch, #patch_valid?, #post, #required_attributes, type, #unpost, unpost, #valid?, #validate

Constructor Details

This class inherits a constructor from Rentlinx::Base

Instance Method Details

#to_hashObject

Converts the object to a hash

Returns:

  • a hash with the details and name of the link



13
14
15
# File 'lib/rentlinx/models/property_amenity.rb', line 13

def to_hash
  { details: details, name: name }
end