Skip to content

Commit

Permalink
Initial model class representing a GitHub enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
johntopleyons committed Sep 6, 2024
1 parent a5d5475 commit c4c763a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions webapp/lib/models/enterprise.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# frozen_string_literal: true

# Model class representing a GitHub Enterprise.
class Enterprise
attr_accessor :administrators,
:avatar_url,
:location,
:pending_members_count,
:total_available_licences_count,
:total_licences_count,
:total_members_count,
:total_outside_collaborators_count,
:two_factor_security_disabled_count,
:website_url

attr_reader :created_at,
:description,
:name,
:url

def initialize(name, description, url, created_at)
@name = name
@description = description
@url = url
@created_at = created_at
end
end

0 comments on commit c4c763a

Please sign in to comment.