class Animal\n include Virtus.model\n\n attribute :kind, String\n attribute :age, Integer\nend\n\n[1] pry(main)> dog = Animal.new(kind: 123, age: '3')\n=> #<Animal:0x00563a43c65da8 @age=3, @kind="123">\n[2] pry(main)> dog.kind\n=> "123"\n[3] pry(main)> dog.age\n=> 3<\/code><\/pre>\n\u3057\u304b\u3082\u3053\u3061\u3089\u306e\u307b\u3046\u304c\u30b7\u30f3\u30d7\u30eb\uff01<\/p>\n
\n\u3082\u3063\u3068\u6df1\u3044\u6a5f\u80fd\u3092\u4f7f\u3048\u3070Hashie::Mash\u3092\u4f7f\u7528\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u5834\u9762\u304c\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u5f0a\u793e\u3067\u306f\u5f53\u5206\u4f7f\u7528\u3059\u308b\u30b7\u30fc\u30f3\u306f\u7121\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5f0a\u793e\u3067\u306fSlack\u4e0a\u3067\u3001`pokemon-go`\u677f\u304c\u51fa\u6765\u305f\u308a\u30ab\u30b9\u30bf\u30e0\u30ea\u30a2\u30af\u30b7\u30e7\u30f3 \u304c\u5927\u6d41\u884c\u3057\u305f\u308a\u306a\u3069\u3057\u3066\u3044\u307e\u3059\u304c\u3001Pokemon GO\u306b\u3044\u307e\u3044\u3061\u30d4\u30f3\u3068\u304d\u3066\u3044\u306a\u3044\u524d\u7530\u3067\u3059\u3002 hashie\u3068\u3044\u3046ruby\u306egem\u304c\u3042\u308a\u307e\u3059\u3002 \u7686\u3055\u3093\u306f\u4f7f\u3063\u3066\u3044\u307e\u3059\u3067\u3057\u3087\u3046\u304b\uff1f \u5148\u65e5\u5f0a\u793e\u306e\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u30c1\u30fc\u30e0\u3067Ruby\u306egem\u3067\u3042\u308bhashie\u3092\u4f7f\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u3001\u3067\u8b70\u8ad6\u304c\u3042\u308a\u307e\u3057\u305f\u3002 omniauth gem \u3067\u4f7f\u7528\u3057\u3066\u3044 […]<\/p>\n","protected":false},"author":1,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[42],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/288"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=288"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":3364,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/288\/revisions\/3364"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}