ePages-de/epages-rest-ruby

View on GitHub
lib/epages/shipping_method.rb

Summary

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

module Epages
  class ShippingMethod
    include Epages::Utils

    KEYS = %w(shipping_method_id name description logo).collect(&:to_sym).freeze

    attr_reader *KEYS

    def initialize(data)
      parse_attributes(data)
    end

    alias_method :id, :shipping_method_id
  end
end