Class: Latitude::API::Resources::Team
- Inherits:
-
APIResource
- Object
- APIResource
- Latitude::API::Resources::Team
- Extended by:
- Operations::Create, Operations::Update
- Defined in:
- lib/latitude/api/resources/team.rb
Defined Under Namespace
Constant Summary
Constants inherited from APIResource
APIResource::READ_ONLY_ATTRIBUTES
Instance Attribute Summary collapse
- #address ⇒ String
- #billing ⇒ Latitude::API::Objects::Billing
- #created_at ⇒ Object readonly
- #currency ⇒ String
- #customer_billing_id ⇒ String
- #email ⇒ Object
- #enforce_mfa ⇒ Boolean
- #feature_flags ⇒ Array
- #first_name ⇒ Object
- #last_login_at ⇒ Object
- #last_name ⇒ Object
- #limits ⇒ Latitude::API::Objects::Limits
- #mfa_enabled ⇒ Object
- #name ⇒ String
- #owner ⇒ Latitude::API::Objects::User
- #projects ⇒ Array
- #referred_code ⇒ String
- #role ⇒ Object
- #slug ⇒ String
- #status ⇒ String
- #token ⇒ String
- #updated_at ⇒ Object readonly
- #users ⇒ Array<User>
Attributes inherited from APIResource
#id, #meta, #path_params, #raw_data, #type
Class Method Summary collapse
Methods included from Operations::Create
Methods included from Operations::Update
Methods inherited from APIResource
#==, #[], #[]=, #as_json, #attributes, #changed?, class_url, config_source, construct_from, #delete, execute_request, extract_path_params, #hash, id_prefix, #initialize, #inspect, instance_url, #method_missing, path_param_keys, #refresh, resource_path, resource_type, #resource_url, #respond_to_missing?, #save, #to_h, #unsaved_attributes, with_config, #write_attribute
Methods included from Attributes::ClassMethods
Methods included from Attributes::InstanceMethods
#attribute_spec, #read_attribute, #wrap_attribute
Constructor Details
This class inherits a constructor from Latitude::API::APIResource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Latitude::API::APIResource
Instance Attribute Details
#address ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#billing ⇒ Latitude::API::Objects::Billing
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#created_at ⇒ Object (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#currency ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#customer_billing_id ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#email ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 109
|
#enforce_mfa ⇒ Boolean
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#feature_flags ⇒ Array
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#first_name ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 101
|
#last_login_at ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 125
|
#last_name ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 105
|
#limits ⇒ Latitude::API::Objects::Limits
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#mfa_enabled ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 113
|
#name ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#owner ⇒ Latitude::API::Objects::User
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#projects ⇒ Array
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#referred_code ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#role ⇒ Object
|
|
# File 'lib/latitude/api/resources/team.rb', line 129
|
#slug ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#status ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#token ⇒ String
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#updated_at ⇒ Object (readonly)
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
#users ⇒ Array<User>
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 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 158 159 160 161 162 163 164 165 166 |
# File 'lib/latitude/api/resources/team.rb', line 40 class Team < APIResource # @!attribute [r] id # @return [String] # @!attribute [r] first_name # @return [String] # @!attribute [r] last_name # @return [String] # @!attribute [r] email # @return [String] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [r] role # @return [Latitude::API::Objects::Role] class User < APIObject attribute :id, :string, read_only: true attribute :first_name, :string, read_only: true attribute :last_name, :string, read_only: true attribute :email, :string, read_only: true attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :role, Objects::Role, read_only: true end attribute :name, :string attribute :slug, :string attribute :address, :string attribute :currency, :string attribute :enforce_mfa, :boolean attribute :referred_code, :string attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :status, :string attribute :users, [User] attribute :projects, :array attribute :owner, Objects::User attribute :billing, Objects::Billing attribute :feature_flags, :array attribute :limits, Objects::Limits attribute :token, :string attribute :customer_billing_id, :string resource_type "teams" resource_path "/team" id_prefix "team_" extend Operations::Create extend Operations::Update class << self def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end def members Member end end # @!attribute [rw] first_name # @return [String] # @!attribute [rw] last_name # @return [String] # @!attribute [rw] email # @return [String] # @!attribute [rw] mfa_enabled # @return [Boolean] # @!attribute [r] created_at # @return [Time] # @!attribute [r] updated_at # @return [Time] # @!attribute [rw] last_login_at # @return [Time] # @!attribute [rw] role # @return [Latitude::API::Objects::Role] class Member < APIResource attribute :first_name, :string attribute :last_name, :string attribute :email, :string attribute :mfa_enabled, :boolean attribute :created_at, :time, read_only: true attribute :updated_at, :time, read_only: true attribute :last_login_at, :time attribute :role, Objects::Role resource_type "memberships" resource_path "/team/members" id_prefix "user_" extend Operations::List extend Operations::Delete class << self def create(params = {}, opts = {}) body = JSONAPI.encode(type: "teams", attributes: params) parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts) construct_from(parsed, opts: opts) end end end end |
Class Method Details
.members ⇒ Object
96 97 98 |
# File 'lib/latitude/api/resources/team.rb', line 96 def members Member end |
.retrieve(opts = {}) ⇒ Object
91 92 93 94 |
# File 'lib/latitude/api/resources/team.rb', line 91 def retrieve(opts = {}) parsed = execute_request(method: :get, path: resource_path, opts: opts) construct_from(parsed, opts: opts) end |