Commit c92d2b45 authored by Baodong's avatar Baodong

Refactor attr_reader method of ZenTao query

Narrow scope of "attr_reader" methods.
They are only used in current class, so put them under private.
parent 9998e460
...@@ -7,8 +7,6 @@ module Gitlab ...@@ -7,8 +7,6 @@ module Gitlab
ISSUES_DEFAULT_LIMIT = 20 ISSUES_DEFAULT_LIMIT = 20
ISSUES_MAX_LIMIT = 50 ISSUES_MAX_LIMIT = 50
attr_reader :client, :params
def initialize(integration, params) def initialize(integration, params)
@client = Client.new(integration) @client = Client.new(integration)
@params = params @params = params
...@@ -32,6 +30,8 @@ module Gitlab ...@@ -32,6 +30,8 @@ module Gitlab
private private
attr_reader :client, :params
def query_options def query_options
{ {
order: query_order, order: query_order,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment