Module: Trello
- Defined in:
- lib/trello.rb,
lib/trello-lite/card.rb,
lib/trello-lite/list.rb,
lib/trello-lite/board.rb,
lib/trello-lite/client.rb,
lib/trello-lite/member.rb,
lib/trello-lite/activity.rb,
lib/trello-lite/custom_field.rb,
lib/trello-lite/organization.rb,
lib/trello-lite/configuration.rb
Defined Under Namespace
Classes: Activity, Board, Card, Client, Configuration, CustomField, List, Member, Organization
Class Method Summary collapse
-
.client ⇒ Object
initialize a client in the environment.
-
.configure(&block) ⇒ Object
block for taking in some credentials.
-
.credentials ⇒ Object
class methods in the Client object access the environment instance methods do the actual work.
-
.find_member(username) ⇒ Object
class methods in the Member object access the environment instance methods do the actual work.
-
.member ⇒ Object
initialize a member in the environment.
-
.parse(url) ⇒ Object
parse url using httparty and return json.
Class Method Details
.client ⇒ Object
initialize a client in the environment
24 25 26 |
# File 'lib/trello.rb', line 24 def self.client @client ||= Client.new end |
.configure(&block) ⇒ Object
block for taking in some credentials
29 30 31 |
# File 'lib/trello.rb', line 29 def self.configure(&block) client.configure(&block) end |
.credentials ⇒ Object
class methods in the Client object access the environment instance methods do the actual work
35 36 37 |
# File 'lib/trello.rb', line 35 def self.credentials client.credentials end |
.find_member(username) ⇒ Object
class methods in the Member object access the environment instance methods do the actual work
46 47 48 |
# File 'lib/trello.rb', line 46 def self.find_member(username) member.find(username) end |
.member ⇒ Object
initialize a member in the environment
40 41 42 |
# File 'lib/trello.rb', line 40 def self.member @member ||= Member.new end |
.parse(url) ⇒ Object
parse url using httparty and return json
18 19 20 21 |
# File 'lib/trello.rb', line 18 def self.parse(url) response = HTTParty.get(url, format: :plain) JSON.parse(response, symbolize_names: true) end |