Sha256: a47d8166fe9927b5e3c52e8727162683f62ee2fc01a1d6382ac34b5877a93115

Contents?: true

Size: 373 Bytes

Versions: 22

Compression:

Stored size: 373 Bytes

Contents

module SparkApi
  module Models
    class ListingMetaTranslations < Base

      def self.for_property_type(pt, options={})
        results = connection.get("/flexmls/propertytypes/#{pt}/translations", options)
        if results.any?
          collect(results).first
        else
          new(StandardFields: {}, CustomFields: {})
        end
      end

    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spark_api-1.6.3 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.6.2 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.6.1 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.7 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.6.0 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.6 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.5 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.4 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.3 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.2 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.1 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.5.0 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.34 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.32 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.31 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.29 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.28 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.27 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.26 lib/spark_api/models/listing_meta_translations.rb
spark_api-1.4.25 lib/spark_api/models/listing_meta_translations.rb