class SemaphoreClient::Model::Org
Attributes
created_at[R]
id[R]
name[R]
projects_url[R]
secrets_url[R]
teams_url[R]
updated_at[R]
url[R]
username[R]
users_url[R]
Public Class Methods
create(attributes)
click to toggle source
# File lib/semaphore_client/model/org.rb, line 10 def self.create(attributes) new.update(attributes) end
load(attributes)
click to toggle source
# File lib/semaphore_client/model/org.rb, line 6 def self.load(attributes) new.load(attributes) end
Public Instance Methods
load(attributes)
click to toggle source
# 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()
click to toggle source
# File lib/semaphore_client/model/org.rb, line 35 def serialize {} end
update(attributes)
click to toggle source
# File lib/semaphore_client/model/org.rb, line 31 def update(attributes) self end
Private Instance Methods
symbolize_keys(hash)
click to toggle source
# File lib/semaphore_client/model/org.rb, line 41 def symbolize_keys(hash) Hash[hash.map { |key, value| [key.to_sym, value] }] end