rootstrap/best_buy_ruby

View on GitHub
lib/best_buy/models/image.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module BestBuy
  class Image
    attr_reader :height, :href, :primary, :rel, :unit_of_measure, :width

    def initialize(init_params)
      @height = init_params[:height]
      @href = init_params[:href]
      @primary = init_params[:primary]
      @rel = init_params[:rel]
      @unit_of_measure = init_params[:unit_of_measure]
      @width = init_params[:width]
    end
  end
end