summaryrefslogtreecommitdiff
path: root/lib/github/representation/base.rb
blob: f26bdbdd5460496c85d381266622e474d9cfc757 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module Github
  module Representation
    class Base
      def initialize(raw, options = {})
        @raw     = raw
        @options = options
      end

      def id
        raw['id']
      end

      def url
        raw['url']
      end

      def created_at
        raw['created_at']
      end

      def updated_at
        raw['updated_at']
      end

      private

      attr_reader :raw, :options
    end
  end
end