def ruletree(property,version = nil)
      raise 'property must be a Borderlands::Property object' unless property.is_a? Property
      version ||= property.productionversion
      tree = nil
      begin
        rt = @client.get_json_body(
          "/papi/v0/properties/#{property.id}/versions/#{version}/rules/",
          { 'contractId' => property.contractid, 'groupId' => property.groupid },
        )
        tree = Rule.new rt['rules']
      rescue Exception => e
        raise "unable to retrieve rule tree for #{property.name}: #{e.message}"
      end
      tree
    end
def ruletree(property,version = nil)
      raise 'property must be a Borderlands::Property object' unless property.is_a? Property
      version ||= property.productionversion
      tree = nil
      begin
        rt = @client.get_json_body(
          "/papi/v0/properties/#{property.id}/versions/#{version}/rules/",
          { 'contractId' => property.contractid, 'groupId' => property.groupid },
        )
        tree = Rule.new rt['rules']
      rescue Exception => e
        raise "unable to retrieve rule tree for #{property.name}: #{e.message}"
      end
      tree
    end
version defaults to current production version here too