Class: Change::Resources::User

Inherits:
MemberResource show all
Defined in:
lib/resources/user.rb

Instance Attribute Summary collapse

Attributes inherited from MemberResource

#id, #properties

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from MemberResource

collection_name, #get_id, #load, #load_collection, member_name

Methods inherited from Resource

#auth_key, #auth_key=, #endpoint, #make_request, #needs_authorization?, #needs_request_signature?, #request_auth_key

Constructor Details

#initialize(client, properties = {}) ⇒ User

Returns a new instance of User.



8
9
10
11
12
# File 'lib/resources/user.rb', line 8

def initialize(client, properties = {})
  super(client, properties)
  @petitions = PetitionCollection.new(self)
  @signatures_on_petitions = PetitionCollection.new(self)
end

Instance Attribute Details

#petitionsObject

Returns the value of attribute petitions.



5
6
7
# File 'lib/resources/user.rb', line 5

def petitions
  @petitions
end

#signatures_on_petitionsObject

Returns the value of attribute signatures_on_petitions.



6
7
8
# File 'lib/resources/user.rb', line 6

def signatures_on_petitions
  @signatures_on_petitions
end