class Trello::ApiObject

Public Class Methods

new(client) click to toggle source
# File lib/trello/api_object.rb, line 3
def initialize(client)
  @client = client
end

Public Instance Methods

add(**args) click to toggle source
# File lib/trello/api_object.rb, line 16
def add(**args)
  raise NotImplementedError
end
delete(id:) click to toggle source
# File lib/trello/api_object.rb, line 20
def delete(id:)
  raise unless id
  @client.delete(resource_url(id))
end
fetch(id:) click to toggle source
# File lib/trello/api_object.rb, line 11
def fetch(id:)
  raise unless id
  @client.get(resource_url(id))
end
fetch_all(**args) click to toggle source
# File lib/trello/api_object.rb, line 7
def fetch_all(**args)
  @client.get(resources_url(args))
end

Private Instance Methods

resource_url(id) click to toggle source
# File lib/trello/api_object.rb, line 31
def resource_url(id)
  raise NotImplementedError
end
resources_url(**args) click to toggle source
# File lib/trello/api_object.rb, line 27
def resources_url(**args)
  raise NotImplementedError
end