Class: SemaphoreClient::Model::Project
- Inherits:
-
Object
- Object
- SemaphoreClient::Model::Project
- Defined in:
- lib/semaphore_client/model/project.rb
Instance Attribute Summary collapse
-
#config_files_url ⇒ Object
readonly
Returns the value of attribute config_files_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#env_vars_url ⇒ Object
readonly
Returns the value of attribute env_vars_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#secrets_url ⇒ Object
readonly
Returns the value of attribute secrets_url.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#users_url ⇒ Object
readonly
Returns the value of attribute users_url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config_files_url ⇒ Object (readonly)
Returns the value of attribute config_files_url.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def config_files_url @config_files_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def created_at @created_at end |
#env_vars_url ⇒ Object (readonly)
Returns the value of attribute env_vars_url.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def env_vars_url @env_vars_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def name @name end |
#secrets_url ⇒ Object (readonly)
Returns the value of attribute secrets_url.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def secrets_url @secrets_url end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def updated_at @updated_at end |
#users_url ⇒ Object (readonly)
Returns the value of attribute users_url.
4 5 6 |
# File 'lib/semaphore_client/model/project.rb', line 4 def users_url @users_url end |
Class Method Details
.create(attributes) ⇒ Object
10 11 12 |
# File 'lib/semaphore_client/model/project.rb', line 10 def self.create(attributes) new.update(attributes) end |
.load(attributes) ⇒ Object
6 7 8 |
# File 'lib/semaphore_client/model/project.rb', line 6 def self.load(attributes) new.load(attributes) end |
Instance Method Details
#load(attributes) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/semaphore_client/model/project.rb', line 14 def load(attributes) attributes = symbolize_keys(attributes) @id = attributes[:id] if attributes.key?(:id) @name = attributes[:name] if attributes.key?(:name) @users_url = attributes[:users_url] if attributes.key?(:users_url) @secrets_url = attributes[:secrets_url] if attributes.key?(:secrets_url) @env_vars_url = attributes[:env_vars_url] if attributes.key?(:env_vars_url) @config_files_url = attributes[:config_files_url] if attributes.key?(:config_files_url) @updated_at = attributes[:updated_at] if attributes.key?(:updated_at) @created_at = attributes[:created_at] if attributes.key?(:created_at) self end |
#serialize ⇒ Object
33 34 35 |
# File 'lib/semaphore_client/model/project.rb', line 33 def serialize {} end |
#update(attributes) ⇒ Object
29 30 31 |
# File 'lib/semaphore_client/model/project.rb', line 29 def update(attributes) self end |