lib/wercker_api/application.rb in wercker_api-0.1.7 vs lib/wercker_api/application.rb in wercker_api-0.1.10
- old
+ new
@@ -1,43 +1,6 @@
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 SCM
- include Virtus.model
- attribute :type, String
- attribute :owner, String
- attribute :domain, String
- attribute :repository, String
- end
-
class Settings
include Virtus.model
attribute :privacy, String
attribute :stack, Integer
attribute :ignoredBranches, Array[String]
@@ -63,9 +26,12 @@
attribute :createdAt, Time
attribute :updatedAt, Time
attribute :allowedActions, Array[String]
attribute :theme, String
attribute :settings, Settings
+ attribute :privacy, String
+ attribute :stack, Integer
+ attribute :userId, String
def badge_key
badgeKey
end