class EdinetCode::Reader::Result

Constants

PROPERTIES

Public Class Methods

new(attr={}) click to toggle source
# File lib/edinet_code/reader.rb, line 13
def initialize(attr={})
  attr.each do |key, value|
    unless PROPERTIES.include?(key)
      raise PropertyError, "#{key}: プロパティに存在しない名前です"
    end
    instance_variable_set("@#{key.to_s}", value)
  end
end