ePages-de/epages-rest-ruby

View on GitHub
lib/epages/quantity.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'epages/utils'

module Epages
  class Quantity
    include Epages::Utils

    KEYS = %w(amount unit).collect(&:to_sym).freeze

    attr_reader *KEYS

    def initialize(data)
      parse_attributes(data)
    end
  end
end