lib/attune/models/blacklist.rb in attune-1.0.10 vs lib/attune/models/blacklist.rb in attune-1.0.11

- old
+ new

@@ -3,46 +3,46 @@ # # # @attr [String] id # @attr [String] entity_type # @attr [String] consumer - # @attr [String] end_date - # @attr [Boolean] disabled - # @attr [String] created_at # @attr [String] start_date + # @attr [String] created_date + # @attr [String] updated_date + # @attr [String] end_date # @attr [Array<String>] scope # @attr [Array<String>] ids - # @attr [Boolean] active + # @attr [Boolean] disabled class Blacklist attr_accessor :id attr_accessor :entity_type attr_accessor :consumer - attr_accessor :end_date + attr_accessor :start_date - attr_accessor :disabled + attr_accessor :created_date - attr_accessor :created_at + attr_accessor :updated_date - attr_accessor :start_date + attr_accessor :end_date attr_accessor :scope attr_accessor :ids - attr_accessor :active + attr_accessor :disabled def initialize(attributes = {}) return if attributes.empty? # Workaround since JSON.parse has accessors as strings rather than symbols @@ -50,17 +50,17 @@ # Workaround since JSON.parse has accessors as strings rather than symbols @entity_type = attributes["entityType"] || attributes[:"entity_type"] # Workaround since JSON.parse has accessors as strings rather than symbols @consumer = attributes["consumer"] || attributes[:"consumer"] # Workaround since JSON.parse has accessors as strings rather than symbols - @end_date = attributes["endDate"] || attributes[:"end_date"] + @start_date = attributes["startDate"] || attributes[:"start_date"] # Workaround since JSON.parse has accessors as strings rather than symbols - @disabled = attributes["disabled"] || attributes[:"disabled"] + @created_date = attributes["createdDate"] || attributes[:"created_date"] # Workaround since JSON.parse has accessors as strings rather than symbols - @created_at = attributes["createdAt"] || attributes[:"created_at"] + @updated_date = attributes["updatedDate"] || attributes[:"updated_date"] # Workaround since JSON.parse has accessors as strings rather than symbols - @start_date = attributes["startDate"] || attributes[:"start_date"] + @end_date = attributes["endDate"] || attributes[:"end_date"] value = attributes["scope"] || attributes[:"scope"] if value.is_a?(Array) @scope = value end @@ -68,11 +68,11 @@ if value.is_a?(Array) @ids = value end # Workaround since JSON.parse has accessors as strings rather than symbols - @active = attributes["active"] || attributes[:"active"] + @disabled = attributes["disabled"] || attributes[:"disabled"] end def to_body @@ -90,16 +90,16 @@ # :internal => :external ATTRIBUTE_MAP = { :id => :id, :entity_type => :entityType, :consumer => :consumer, - :end_date => :endDate, - :disabled => :disabled, - :created_at => :createdAt, :start_date => :startDate, + :created_date => :createdDate, + :updated_date => :updatedDate, + :end_date => :endDate, :scope => :scope, :ids => :ids, - :active => :active + :disabled => :disabled } end end end