lib/phrase/models/webhook.rb in phrase-1.0.8 vs lib/phrase/models/webhook.rb in phrase-1.0.9

- old
+ new

@@ -10,10 +10,12 @@ attr_accessor :events attr_accessor :active + attr_accessor :include_branches + attr_accessor :created_at attr_accessor :updated_at # Attribute mapping from ruby-style variable name to JSON key. @@ -22,10 +24,11 @@ :'id' => :'id', :'callback_url' => :'callback_url', :'description' => :'description', :'events' => :'events', :'active' => :'active', + :'include_branches' => :'include_branches', :'created_at' => :'created_at', :'updated_at' => :'updated_at' } end @@ -35,10 +38,11 @@ :'id' => :'String', :'callback_url' => :'String', :'description' => :'String', :'events' => :'Array<String>', :'active' => :'Boolean', + :'include_branches' => :'Boolean', :'created_at' => :'DateTime', :'updated_at' => :'DateTime' } end @@ -83,10 +87,14 @@ if attributes.key?(:'active') self.active = attributes[:'active'] end + if attributes.key?(:'include_branches') + self.include_branches = attributes[:'include_branches'] + end + if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.key?(:'updated_at') @@ -115,10 +123,11 @@ id == o.id && callback_url == o.callback_url && description == o.description && events == o.events && active == o.active && + include_branches == o.include_branches && created_at == o.created_at && updated_at == o.updated_at end # @see the `==` method @@ -128,10 +137,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, callback_url, description, events, active, created_at, updated_at].hash + [id, callback_url, description, events, active, include_branches, created_at, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself