Sha256: e0b009222b760387aec00a017a9ed3082aae6933de6b784588e1646e6a8a4ea6

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

module FlexmlsApi
  module Models
    module Subresource 
    
      def build_subclass
        Class.new(self)
      end


      def find_by_listing_key(key, arguments={})
        collect(connection.get("/listings/#{key}#{self.path}", arguments))
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexmls_api-0.6.5 lib/flexmls_api/models/subresource.rb
flexmls_api-0.6.4 lib/flexmls_api/models/subresource.rb
flexmls_api-0.4.5 lib/flexmls_api/models/subresource.rb