Sha256: d524a26c6862cde2ddc3b392d09b557c8d139010ea0bbcd214e3a1ae967f2197

Contents?: true

Size: 578 Bytes

Versions: 5

Compression:

Stored size: 578 Bytes

Contents

module WerckerAPI
  class Meta
    include Virtus.model
    attribute :username,        String
    attribute :type,            String
    attribute :werckerEmployee, Boolean

    def wercker_employee
      werckerEmployee
    end
  end

  class Avatar
    include Virtus.model
    attribute :gravatar, String
  end

  class Owner
    include Virtus.model
    attribute :type,   String
    attribute :userId, String
    attribute :name,   String
    attribute :avatar, Avatar
    attribute :meta,   Meta

    def user_id
      userId
    end
  end

  class User < Owner; end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wercker_api-1.0.8 lib/wercker_api/owner.rb
wercker_api-1.0.6 lib/wercker_api/owner.rb
wercker_api-1.0.4 lib/wercker_api/owner.rb
wercker_api-1.0.2 lib/wercker_api/owner.rb
wercker_api-1.0.1 lib/wercker_api/owner.rb