Class: Spaceship::ConnectAPI::Profile
- Inherits:
-
Object
- Object
- Spaceship::ConnectAPI::Profile
- Includes:
- Model
- Defined in:
- spaceship/lib/spaceship/connect_api/models/profile.rb
Defined Under Namespace
Modules: ProfileState, ProfileType
Instance Attribute Summary collapse
-
#created_date ⇒ Object
Returns the value of attribute created_date.
-
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#profile_content ⇒ Object
Returns the value of attribute profile_content.
-
#profile_state ⇒ Object
Returns the value of attribute profile_state.
-
#profile_type ⇒ Object
Returns the value of attribute profile_type.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes included from Model
Class Method Summary collapse
Methods included from Model
#attr_mapping, included, #initialize, #to_json, #update_attributes
Instance Attribute Details
#created_date ⇒ Object
Returns the value of attribute created_date.
11 12 13 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 11 def created_date @created_date end |
#expiration_date ⇒ Object
Returns the value of attribute expiration_date.
14 15 16 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 14 def expiration_date @expiration_date end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 7 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
8 9 10 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 8 def platform @platform end |
#profile_content ⇒ Object
Returns the value of attribute profile_content.
9 10 11 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 9 def profile_content @profile_content end |
#profile_state ⇒ Object
Returns the value of attribute profile_state.
12 13 14 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 12 def profile_state @profile_state end |
#profile_type ⇒ Object
Returns the value of attribute profile_type.
13 14 15 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 13 def profile_type @profile_type end |
#uuid ⇒ Object
Returns the value of attribute uuid.
10 11 12 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 10 def uuid @uuid end |
Class Method Details
.all(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object
API
54 55 56 57 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 54 def self.all(filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_profiles(filter: filter, includes: includes).all_pages return resps.flat_map(&:to_models) end |
.type ⇒ Object
46 47 48 |
# File 'spaceship/lib/spaceship/connect_api/models/profile.rb', line 46 def self.type return "profiles" end |