Class: Rentlinx::PropertyLink

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

Overview

A link on a property

Direct Known Subclasses

UnitLink

Constant Summary collapse

ATTRIBUTES =
[:propertyID, :title, :url].freeze
REQUIRED_ATTRIBUTES =
[:propertyID, :title, :url].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 link to a hash

Returns:

  • a hash with the url and title of the link



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

def to_hash
  { url: url, title: title }
end