module Trello
Public Class Methods
client()
click to toggle source
initialize a client in the environment
# File lib/trello.rb, line 24 def self.client @client ||= Client.new end
configure(&block)
click to toggle source
block for taking in some credentials
# File lib/trello.rb, line 29 def self.configure(&block) client.configure(&block) end
credentials()
click to toggle source
class methods in the Client
object access the environment instance methods do the actual work
# File lib/trello.rb, line 35 def self.credentials client.credentials end
find_member(username)
click to toggle source
class methods in the Member
object access the environment instance methods do the actual work
# File lib/trello.rb, line 46 def self.find_member(username) member.find(username) end
member()
click to toggle source
initialize a member in the environment
# File lib/trello.rb, line 40 def self.member @member ||= Member.new end
parse(url)
click to toggle source
parse url using httparty and return json
# File lib/trello.rb, line 18 def self.parse(url) response = HTTParty.get(url, format: :plain) JSON.parse(response, symbolize_names: true) end