Sha256: b839f2ae63cdcf1aeba89645b28376d5ac40474623e9292e3e31089496984f71

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

module Attune
  module Model
    # 
    class BlacklistGetResponse
      attr_accessor :blacklists
      

      # :internal => :external
      def self.attribute_map
        {
          :blacklists => :blacklists

        }
      end

      def initialize(attributes = {})
        return if attributes.empty?
        # Morph attribute keys into undescored rubyish style
        if self.class.attribute_map[:"blacklists"]
          value = attributes["blacklists"] || attributes[:"blacklists"]
            if value.is_a?(Array)
              @blacklists = value.map{ |v| Blacklist.new(v) }

            end
          end
        

      end

      def to_body
        body = {}
        self.class.attribute_map.each_pair do |key, value|
          body[value] = self.send(key) unless self.send(key).nil?
        end
        body
      end

      def to_json(options = {})
        to_body.to_json
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attune-1.0.5 lib/attune/models/blacklistgetresponse.rb