Code Duplication    Length = 4-4 lines in 2 locations

lib/ringcentral-avatars/creator.rb 2 locations

@@ 139-142 (lines=4) @@
136
        AVATARLY_DEFAULTS.merge avatarly_opts
137
      end
138
139
      def inflate_identicon_opts(identicon_opts = {})
140
        identicon_opts = {} unless identicon_opts.is_a? Hash
141
        IDENTICON_DEFAULTS.merge identicon_opts
142
      end
143
144
      def avatar_blob(text, style = nil)
145
        style = @style if style.nil?
@@ 134-137 (lines=4) @@
131
        @style = opts.key?(:style) ? opts[:style] : DEFAULT_STYLE
132
      end
133
134
      def inflate_avatarly_opts(avatarly_opts = {})
135
        avatarly_opts = {} unless avatarly_opts.is_a? Hash
136
        AVATARLY_DEFAULTS.merge avatarly_opts
137
      end
138
139
      def inflate_identicon_opts(identicon_opts = {})
140
        identicon_opts = {} unless identicon_opts.is_a? Hash