Class: JIRA::Resource::UserFactory

Inherits:
BaseFactory show all
Defined in:
lib/jira/resource/user.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from BaseFactory

#client

Instance Method Summary collapse

Methods inherited from BaseFactory

#build, delegate_to_target_class, #initialize, #target_class

Constructor Details

This class inherits a constructor from JIRA::BaseFactory

Instance Method Details

#myselfObject



5
6
7
8
9
10
# File 'lib/jira/resource/user.rb', line 5

def myself
  instance = build
  response = client.get("#{client.options[:rest_base_path]}/myself")
  instance.set_attrs_from_response(response)
  instance
end