Sha256: c8d65e74c8c2701caaef78aac9d8424e0db96ff2f94b784d279d2d6bc30416d0

Contents?: true

Size: 833 Bytes

Versions: 5

Compression:

Stored size: 833 Bytes

Contents

# frozen_string_literal: true

module KExt
  module Github
    module Models
      # This model represents a GitHub Repository
      class Repository
        include Virtus.model

        def initialize(attributes = nil)
          # Virtus will take your attributes and match them to the attribute definitions listed below
          super(attributes)
        end

        attribute :id, String
        attribute :node_id, String
        attribute :name, String
        attribute :full_name, String
        attribute :private, String
        attribute :description, String
        attribute :url, String
        attribute :created_at, String
        attribute :updated_at, String
        attribute :pushed_at, String
        attribute :git_url, String
        attribute :owner, KExt::Github::Models::Owner
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
k_ext-github-0.0.10 lib/k_ext/github/models/repository.rb
k_ext-github-0.0.8 lib/k_ext/github/models/repository.rb
k_ext-github-0.0.5 lib/k_ext/github/models/repository.rb
k_ext-github-0.0.4 lib/k_ext/github/models/repository.rb
k_ext-github-0.0.3 lib/k_ext/github/models/repository.rb