Class: Trello::Organization
- Includes:
- HasActions
- Defined in:
- lib/trello/organization.rb
Overview
Organizations are useful for linking members together.
Instance Attribute Summary collapse
- #desc_data ⇒ String readonly
- #description ⇒ String readonly
- #display_name ⇒ String readonly
- #enable_add_external_members ⇒ Boolean writeonly
- #google_app_domain ⇒ String writeonly
- #google_app_version ⇒ String writeonly
- #id ⇒ String readonly
- #logo_hash ⇒ String readonly
- #logo_url ⇒ String readonly
- #name ⇒ String readonly
- #organization_visible_board_creation_permission_level ⇒ String writeonly
- #power_ups ⇒ Array readonly
- #private_board_creation_permission_level ⇒ String writeonly
- #public_board_creation_permission_level ⇒ String writeonly
- #team_type ⇒ String readonly
- #url ⇒ String readonly
- #visibility_level ⇒ String writeonly
- #website ⇒ String readonly
Attributes inherited from BasicData
Class Method Summary collapse
-
.find(id, params = {}) ⇒ Object
Find an organization by its id.
Instance Method Summary collapse
-
#boards(params = {}) ⇒ Object
Returns a list of boards under this organization.
-
#members(params = {}) ⇒ Object
Returns an array of members associated with the organization.
-
#request_prefix ⇒ Object
:nodoc:.
Methods included from HasActions
Methods inherited from BasicData
#==, #attributes, client, #collection_name, #collection_path, create, #element_name, #element_path, #hash, #initialize, many, one, parse, parse_many, path_name, #refresh!, register_attrs, #save, save, schema, #schema, #update!, #update_fields
Methods included from JsonUtils
Constructor Details
This class inherits a constructor from Trello::BasicData
Instance Attribute Details
#desc_data ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#description ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#display_name ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#enable_add_external_members=(value) ⇒ Boolean (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#google_app_domain=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#google_app_version=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#id ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#logo_hash ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#logo_url ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#name ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#organization_visible_board_creation_permission_level=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#power_ups ⇒ Array (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#private_board_creation_permission_level=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#public_board_creation_permission_level=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#team_type ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#url ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#visibility_level=(value) ⇒ String (writeonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
#website ⇒ String (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/trello/organization.rb', line 40 class Organization < BasicData schema do # Readonly attribute :id, readonly: true, primary_key: true attribute :team_type, readonly: true, remote_key: 'teamType' attribute :url, readonly: true attribute :desc_data, readonly: true, remote_key: 'descData' attribute :logo_hash, readonly: true, remote_key: 'logoHash' attribute :logo_url, readonly: true, remote_key: 'logoUrl' attribute :products, readonly: true attribute :power_ups, readonly: true, remote_key: 'powerUps' # Writable attribute :name attribute :display_name, remote_key: 'displayName' attribute :description, remote_key: 'desc' attribute :website # Writable but update only attribute :google_app_domain, update_only: true, remote_key: 'associatedDomain', class_name: 'BoardPref' attribute :google_app_version, update_only: true, remote_key: 'googleAppsVersion ', class_name: 'BoardPref' attribute :enable_add_external_members, update_only: true, remote_key: 'externalMembersDisabled', class_name: 'BoardPref' attribute :private_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/private', class_name: 'BoardPref' attribute :organization_visible_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/org', class_name: 'BoardPref' attribute :public_board_creation_permission_level, update_only: true, remote_key: 'boardVisibilityRestrict/public', class_name: 'BoardPref' attribute :visibility_level, update_only: true, remote_key: 'permissionLevel ', class_name: 'BoardPref' end validates_presence_of :id, :name include HasActions class << self # Find an organization by its id. def find(id, params = {}) client.find(:organization, id, params) end end # Returns a list of boards under this organization. def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end # Returns an array of members associated with the organization. def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end # :nodoc: def request_prefix "/organizations/#{id}" end end |
Class Method Details
.find(id, params = {}) ⇒ Object
Find an organization by its id.
74 75 76 |
# File 'lib/trello/organization.rb', line 74 def find(id, params = {}) client.find(:organization, id, params) end |
Instance Method Details
#boards(params = {}) ⇒ Object
Returns a list of boards under this organization.
80 81 82 83 |
# File 'lib/trello/organization.rb', line 80 def boards(params = {}) boards = Board.from_response client.get("/organizations/#{id}/boards", params) MultiAssociation.new(self, boards).proxy end |
#members(params = {}) ⇒ Object
Returns an array of members associated with the organization.
86 87 88 89 |
# File 'lib/trello/organization.rb', line 86 def members(params = {}) members = Member.from_response client.get("/organizations/#{id}/members/all", params) MultiAssociation.new(self, members).proxy end |
#request_prefix ⇒ Object
:nodoc:
92 93 94 |
# File 'lib/trello/organization.rb', line 92 def request_prefix "/organizations/#{id}" end |