Class: FlexmlsApi::Models::VirtualTour

Inherits:
Base
  • Object
show all
Extended by:
Subresource
Defined in:
lib/flexmls_api/models/virtual_tour.rb

Constant Summary

Constants included from Paginate

Paginate::DEFAULT_PAGE_SIZE

Instance Attribute Summary

Attributes inherited from Base

#attributes, #changed, #errors

Instance Method Summary collapse

Methods included from Subresource

build_subclass, find_by_id, find_by_listing_key

Methods inherited from Base

#connection, connection, count, element_name, element_name=, first, get, #initialize, #load, #method_missing, #parse_id, path, prefix, prefix=, #respond_to?

Methods included from Paginate

#collect, #paginate, #per_page

Constructor Details

This class inherits a constructor from FlexmlsApi::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FlexmlsApi::Models::Base

Instance Method Details

#branded?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/flexmls_api/models/virtual_tour.rb', line 8

def branded? 
  attributes["Type"] == "branded"
end

#unbranded?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/flexmls_api/models/virtual_tour.rb', line 12

def unbranded?
  attributes["Type"] == "unbranded"
end