Class: SemaphoreClient::Model::Org
- Inherits:
-
Object
- Object
- SemaphoreClient::Model::Org
- Defined in:
- lib/semaphore_client/model/org.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#projects_url ⇒ Object
readonly
Returns the value of attribute projects_url.
-
#secrets_url ⇒ Object
readonly
Returns the value of attribute secrets_url.
-
#teams_url ⇒ Object
readonly
Returns the value of attribute teams_url.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
-
#users_url ⇒ Object
readonly
Returns the value of attribute users_url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def name @name end |
#projects_url ⇒ Object (readonly)
Returns the value of attribute projects_url.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def projects_url @projects_url end |
#secrets_url ⇒ Object (readonly)
Returns the value of attribute secrets_url.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def secrets_url @secrets_url end |
#teams_url ⇒ Object (readonly)
Returns the value of attribute teams_url.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def teams_url @teams_url end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def url @url end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def username @username end |
#users_url ⇒ Object (readonly)
Returns the value of attribute users_url.
4 5 6 |
# File 'lib/semaphore_client/model/org.rb', line 4 def users_url @users_url end |
Class Method Details
.create(attributes) ⇒ Object
10 11 12 |
# File 'lib/semaphore_client/model/org.rb', line 10 def self.create(attributes) new.update(attributes) end |
.load(attributes) ⇒ Object
6 7 8 |
# File 'lib/semaphore_client/model/org.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 28 29 |
# File 'lib/semaphore_client/model/org.rb', line 14 def load(attributes) attributes = symbolize_keys(attributes) @id = attributes[:id] if attributes.key?(:id) @name = attributes[:name] if attributes.key?(:name) @url = attributes[:url] if attributes.key?(:url) @projects_url = attributes[:projects_url] if attributes.key?(:projects_url) @secrets_url = attributes[:secrets_url] if attributes.key?(:secrets_url) @users_url = attributes[:users_url] if attributes.key?(:users_url) @teams_url = attributes[:teams_url] if attributes.key?(:teams_url) @username = attributes[:username] if attributes.key?(:username) @created_at = attributes[:created_at] if attributes.key?(:created_at) @updated_at = attributes[:updated_at] if attributes.key?(:updated_at) self end |
#serialize ⇒ Object
35 36 37 |
# File 'lib/semaphore_client/model/org.rb', line 35 def serialize {} end |
#update(attributes) ⇒ Object
31 32 33 |
# File 'lib/semaphore_client/model/org.rb', line 31 def update(attributes) self end |