Class: Trello::Member

Inherits:
BasicData show all
Includes:
HasActions
Defined in:
lib/trello/member.rb

Overview

A Member is a user of the Trello service.

Instance Attribute Summary collapse

Attributes inherited from BasicData

#client

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasActions

#actions

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

included

Constructor Details

This class inherits a constructor from Trello::BasicData

Instance Attribute Details

#activity_blockedBoolean (readonly)

Returns:

  • (Boolean)


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(options = { size: :large })
    size = options[: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_idsArray<String> (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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)

Returns:



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(options = { size: :large })
    size = options[: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

#bioString

Returns:



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(options = { size: :large })
    size = options[: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_dataHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idsArray<String> (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#confirmedBoolean (readonly)

Returns:

  • (Boolean)


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(options = { size: :large })
    size = options[: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_idsString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#emailString

Returns:



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(options = { size: :large })
    size = options[: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_idString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_nameString

Returns:



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(options = { size: :large })
    size = options[: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

#idString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#initialsString

Returns:



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(options = { size: :large })
    size = options[: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

#limitsHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_typesArray<String> (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_inHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_typeString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_publicHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_availableHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idsArray<String> (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idsString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#prefsHash (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#productsArray (readonly)

Returns:



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(options = { size: :large })
    size = options[: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_idString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#statusString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#urlString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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

#usernameString (readonly)

Returns:



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(options = { size: :large })
    size = options[: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(options = { size: :large })
  size = options[:size] == :small ? 30 : 170
  "https://trello-avatars.s3.amazonaws.com/#{avatar_id}/#{size}.png"
end

#request_prefixObject

:nodoc:



154
155
156
# File 'lib/trello/member.rb', line 154

def request_prefix
  "/members/#{id}"
end