lib/myjohndeere/organization.rb in myjohndeere-0.1.4 vs lib/myjohndeere/organization.rb in myjohndeere-0.1.5

- old
+ new

@@ -8,14 +8,14 @@ def initialize(json_object, access_token = nil) super(json_object, access_token) end def has_access_to_boundaries? - self.links.any? {|i| i["rel"] == "boundaries"} + self.has_access_to?("boundaries") end def has_access_to_fields? - self.links.any? {|i| i["rel"] == "fields"} + self.has_access_to?("fields") end def fields return MyJohnDeere::Field.list(self.access_token, organization_id: self.id) end \ No newline at end of file