class TrelloFreestyler::Options
Attributes
action_types[RW]
board_id[RW]
key[RW]
output[RW]
timezone[RW]
token[RW]
url[RW]
Public Class Methods
new(key, token, url, board_id, action_types, output, timezone)
click to toggle source
rubocop:disable Metrics/ParameterLists
# File lib/trello_freestyler/options.rb, line 9 def initialize(key, token, url, board_id, action_types, output, timezone) @key = key @token = token @url = url || 'https://api.trello.com/1' @board_id = board_id @action_types = action_types || 'addMemberToCard,removeMemberFromCard,createCard,moveCardFromBoard,moveCardToBoard,updateCard' @output = output || '.output' @timezone = TZInfo::Timezone.get((timezone || 'Australia/Melbourne')) end
Public Instance Methods
==(other)
click to toggle source
rubocop:enable Metrics/ParameterLists
# File lib/trello_freestyler/options.rb, line 21 def ==(other) key == other.key && token == other.token && url == other.url && board_id == other.board_id && action_types == other.action_types && output == other.output && timezone == other.timezone end