Class: Pivit::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, Activity, Iteration, Membership, Note, Project, Story, Task, Connection, Request
Defined in:
lib/pivit/client.rb,
lib/pivit/client/note.rb,
lib/pivit/client/task.rb,
lib/pivit/client/story.rb,
lib/pivit/client/project.rb,
lib/pivit/client/activity.rb,
lib/pivit/client/iteration.rb,
lib/pivit/client/membership.rb

Defined Under Namespace

Modules: Activity, Iteration, Membership, Note, Project, Story, Task

Instance Method Summary collapse

Methods included from Task

#create_task, #delete_task, #task, #tasks, #update_task

Methods included from Story

#add_attachment, #create_story, #delete_story, #move_story_after, #move_story_before, #stories, #story, #update_story

Methods included from Project

#create_project, #project, #projects

Methods included from Note

#create_note, #notes

Methods included from Membership

#create_membership, #delete_membership, #membership, #memberships

Methods included from Iteration

#done_iterations, #iteration_backlog, #iteration_current, #iteration_current_and_backlog, #iterations

Methods included from Activity

#activity

Methods included from Request

#build_endpoint, #delete, #get, #post, #put

Methods included from Connection

#connection

Methods included from Authentication

#authenticate, #authenticated?

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



18
19
20
21
22
23
24
25
26
# File 'lib/pivit/client.rb', line 18

def initialize(options = {})
  options = Pivit.options.merge(options)

  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end

  authenticate(options)
end