add attributes method
Merge pull request #2 from takkanm/impl_attributes_method

add attributes method
version bump
raise ArgumentError unless constructor argument isn't a Hash