Class: Trello::Member
- Includes:
- HasActions
- Defined in:
- lib/trello/member.rb
Overview
A Member is a user of the Trello service.
Instance Attribute Summary collapse
- #activity_blocked ⇒ Boolean readonly
- #admin_enterprise_ids ⇒ Array<String> readonly
- #admin_orgs_perm_id ⇒ String readonly
- #avatar_id ⇒ String readonly
- #avatar_source ⇒ String writeonly
- #bio ⇒ String
- #bio_data ⇒ Hash readonly
- #board_ids ⇒ Array<String> readonly
- #confirmed ⇒ Boolean readonly
- #deactivated_enterprise_ids ⇒ String readonly
- #email ⇒ String
- #enterprise_id ⇒ String readonly
- #full_name ⇒ String
- #id ⇒ String readonly
- #initials ⇒ String
- #limits ⇒ Hash readonly
- #login_types ⇒ Array<String> readonly
- #marketing_opt_in ⇒ Hash readonly
- #member_type ⇒ String readonly
- #non_public ⇒ Hash readonly
- #non_public_available ⇒ Hash readonly
- #organization_ids ⇒ Array<String> readonly
- #pinned_board_ids ⇒ String readonly
- #prefs ⇒ Hash readonly
- #products ⇒ Array readonly
- #referrer_member_id ⇒ String readonly
- #status ⇒ String readonly
- #url ⇒ String readonly
- #username ⇒ String readonly
Attributes inherited from BasicData
Class Method Summary collapse
-
.find(id_or_username, params = {}) ⇒ Object
Finds a user.
Instance Method Summary collapse
-
#avatar_url(options = { size: :large }) ⇒ Object
Retrieve a URL to the avatar.
-
#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
#activity_blocked ⇒ Boolean (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#admin_enterprise_ids ⇒ Array<String> (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#admin_orgs_perm_id ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#avatar_id ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#avatar_source=(value) ⇒ String (writeonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#bio ⇒ String
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#bio_data ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#board_ids ⇒ Array<String> (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#confirmed ⇒ Boolean (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#deactivated_enterprise_ids ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#email ⇒ String
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#enterprise_id ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#full_name ⇒ String
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#id ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#initials ⇒ String
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#limits ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#login_types ⇒ Array<String> (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#marketing_opt_in ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#member_type ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#non_public ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#non_public_available ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#organization_ids ⇒ Array<String> (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#pinned_board_ids ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#prefs ⇒ Hash (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#products ⇒ Array (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#referrer_member_id ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#status ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#url ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
#username ⇒ String (readonly)
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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/trello/member.rb', line 62 class Member < BasicData schema do # readonly attribute :id, readonly: true, primary_key: true attribute :email, readonly: true attribute :avatar_id, readonly: true, remote_key: 'avatarHash' attribute :url, readonly: true attribute :prefs, readonly: true attribute :activity_blocked, readonly: true, remote_key: 'activityBlocked' attribute :bio_data, readonly: true, remote_key: 'bioData' attribute :confirmed, readonly: true attribute :enterprise_id, readonly: true, remote_key: 'idEnterprise' attribute :deactivated_enterprise_ids, readonly: true, remote_key: 'idEnterprisesDeactivated' attribute :referrer_member_id, readonly: true, remote_key: 'idMemberReferrer' attribute :admin_orgs_perm_id, readonly: true, remote_key: 'idPremOrgsAdmin' attribute :member_type, readonly: true, remote_key: 'memberType' attribute :non_public, readonly: true, remote_key: 'nonPublic' attribute :non_public_available, readonly: true, remote_key: 'nonPublicAvailable' attribute :products, readonly: true attribute :status, readonly: true attribute :board_ids, readonly: true, remote_key: 'idBoards' attribute :organization_ids, readonly: true, remote_key: 'idOrganizations' attribute :admin_enterprise_ids, readonly: true, remote_key: 'idEnterprisesAdmin' attribute :limits, readonly: true attribute :login_types, readonly: true, remote_key: 'loginTypes' attribute :marketing_opt_in, readonly: true, remote_key: 'marketingOptIn' attribute :pinned_board_ids, readonly: true, remote_key: 'idBoardsPinned' # writable attribute :username attribute :full_name, remote_key: 'fullName' attribute :initials attribute :bio attribute :avatar_source, remote_key: 'avatarSource' end validates_presence_of :id, :username validates_length_of :full_name, minimum: 4 validates_length_of :bio, maximum: 16384 include HasActions class << self # Finds a user # # The argument may be specified as either an _id_ or a _username_. def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end end # Retrieve a URL to the avatar. # # Valid values for options are: # :large (170x170) # :small (30x30) def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end # Returns a list of the boards a member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :organization, :public, :open, :closed, :all ] # default: :all # i.e., # me.boards(:filter => :closed) # retrieves all closed boards many :boards, filter: :all # Returns a list of cards the member is assigned to. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :open, :closed, :all ] # default :open # i.e., # me.cards(:filter => :closed) # retrieves all closed cards many :cards, filter: :open # Returns a list of the organizations this member is a part of. # # This method, when called, can take a hash table with a filter key containing any # of the following values: # :filter => [ :none, :members, :public, :all ] # default: all # i.e., # me.organizations(:filter => :public) # retrieves all public organizations many :organizations, filter: :all # Returns a list of notifications for the user many :notifications # :nodoc: def request_prefix "/members/#{id}" end end |
Class Method Details
.find(id_or_username, params = {}) ⇒ Object
Finds a user
The argument may be specified as either an id or a username.
108 109 110 |
# File 'lib/trello/member.rb', line 108 def find(id_or_username, params = {}) client.find(:member, id_or_username, params) end |
Instance Method Details
#avatar_url(options = { size: :large }) ⇒ Object
Retrieve a URL to the avatar.
Valid values for options are:
:large (170x170)
:small (30x30)
118 119 120 121 |
# File 'lib/trello/member.rb', line 118 def avatar_url( = { size: :large }) size = [:size] == :small ? 30 : 170 "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png" end |
#request_prefix ⇒ Object
:nodoc:
154 155 156 |
# File 'lib/trello/member.rb', line 154 def request_prefix "/members/#{id}" end |