Class: Change::Resources::Organization
- Inherits:
-
MemberResource
- Object
- Resource
- MemberResource
- Change::Resources::Organization
- Defined in:
- lib/resources/organization.rb
Instance Attribute Summary collapse
-
#petitions ⇒ Object
Returns the value of attribute petitions.
Attributes inherited from MemberResource
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(client, properties = {}) ⇒ Organization
constructor
A new instance of Organization.
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 = {}) ⇒ Organization
Returns a new instance of Organization.
7 8 9 10 |
# File 'lib/resources/organization.rb', line 7 def initialize(client, properties = {}) super(client, properties) @petitions = PetitionCollection.new(self) end |
Instance Attribute Details
#petitions ⇒ Object
Returns the value of attribute petitions.
5 6 7 |
# File 'lib/resources/organization.rb', line 5 def petitions @petitions end |