rentlinx 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d84ca87dc674c10fafbf7c3768f741604c35071
4
- data.tar.gz: f4a5aa6c95773c2aceea5430b7ed9613d33a9684
3
+ metadata.gz: 8a8545037d906a8212ef5ccbe31a72fa84feee43
4
+ data.tar.gz: 3cb24db83cb2c45c76779a7cbde061eb03cb97b8
5
5
  SHA512:
6
- metadata.gz: 8c8f68214467b6510fe357f5b8807da5b1f4d66b83c9386ef4e2a5e13dbe9c2fddef2a5b9e007e2bd1d3654dcc3cb584abcffc73dc9366671fd7f250c2f08684
7
- data.tar.gz: a559470f580ab80c11238dec51c805719acb0825e7fb3539ac6681c884188661fe7a739d43963a15e3eb1a77abdbd1b878e4c7eee14a09725a9770822c3d7087
6
+ metadata.gz: f48136efc044933ac871698cc63e14d4e996232828ef874acd5dcca5d73550e6048cb41dc6df5e6ff9ff02c9f972a4f8f3749f81f341469f6b895158c0842bc5
7
+ data.tar.gz: 730e04ed068bcc7c406208cf89bb86ab724d395a129d8adf42038a11cad90e64d3554a3dee0748c89f042a6601c277907a373cc4b9c9352bf85e812537bb3021
@@ -9,6 +9,7 @@ require 'rentlinx/modules/photo_client_methods'
9
9
  require 'rentlinx/modules/amenity_client_methods'
10
10
  require 'rentlinx/modules/link_client_methods'
11
11
  require 'rentlinx/modules/lead_client_methods'
12
+ require 'rentlinx/modules/websites_client_methods'
12
13
 
13
14
  module Rentlinx
14
15
  # This class and its included modules encapsulate all
@@ -24,6 +25,7 @@ module Rentlinx
24
25
  include Rentlinx::AmenityClientMethods
25
26
  include Rentlinx::LinkClientMethods
26
27
  include Rentlinx::LeadClientMethods
28
+ include Rentlinx::WebsitesClientMethods
27
29
 
28
30
  # Returns a new instance of client. Avoid using.
29
31
  #
@@ -58,6 +58,14 @@ module Rentlinx
58
58
  get_from_id(:property, id)
59
59
  end
60
60
 
61
+ # Asks rentlinx for a list of places where the property is posted
62
+ #
63
+ # @param id [String] the rentlinx id of the property
64
+ # @return a list of hashes
65
+ def self.websites(id)
66
+ Rentlinx.client.get_websites(id)
67
+ end
68
+
61
69
  include Rentlinx::Photoable
62
70
  # For internal use.
63
71
  def photo_class
@@ -0,0 +1,8 @@
1
+ module Rentlinx
2
+ # Client method for websites method on properties
3
+ module WebsitesClientMethods
4
+ def get_websites(id)
5
+ request('get', "properties/#{id}/websites")['data']
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  # This is the main rentlinx module. All Rentlinx objects
2
2
  # and methods are namespaced under this module.
3
3
  module Rentlinx
4
- VERSION = '0.10.0'.freeze
4
+ VERSION = '0.10.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rentlinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio, Inc.
@@ -85,6 +85,7 @@ files:
85
85
  - lib/rentlinx/modules/photoable.rb
86
86
  - lib/rentlinx/modules/property_client_methods.rb
87
87
  - lib/rentlinx/modules/unit_client_methods.rb
88
+ - lib/rentlinx/modules/websites_client_methods.rb
88
89
  - lib/rentlinx/validators/address_validator.rb
89
90
  - lib/rentlinx/validators/amount_validator.rb
90
91
  - lib/rentlinx/validators/attribute_processor_service.rb
@@ -115,8 +116,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
116
  version: '0'
116
117
  requirements: []
117
118
  rubyforge_project:
118
- rubygems_version: 2.5.1
119
+ rubygems_version: 2.4.3
119
120
  signing_key:
120
121
  specification_version: 4
121
122
  summary: API Wrapper for the Rentlinx API
122
123
  test_files: []
124
+ has_rdoc: