Sha256: 47c729f3f31d2c4ec0e7a6ae2e77a21355a4e687dc730e28cc1eef2421b221c1
Contents?: true
Size: 303 Bytes
Versions: 2
Compression:
Stored size: 303 Bytes
Contents
module JSON module Generator class BasicAttribute def initialize(attributes) @attributes = attributes end def generate @attributes['default'] || self.class::DEFAULT_VALUE end def required? @attributes['required'] end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
json-generator-0.0.1 | lib/json/generator/basic_attribute.rb |
contracts_api_test-0.0.1 | lib/json/generator/basic_attribute.rb |