lib/crowdskout/components/attributes/option.rb in crowdskout-0.0.4 vs lib/crowdskout/components/attributes/option.rb in crowdskout-0.0.5

- old
+ new

@@ -1,14 +1,18 @@ -# Copyright (c) 2016 Kyle Schutt. All rights reserved.require +# +# option.rb +# Crowdskout +# +# Copyright (c) 2016 Kyle Schutt. All rights reserved. module Crowdskout module Components class Option < Component attr_accessor :id, :value - # Factory method to create an Address object from a json string + # Factory method to create an Option object from a json string # @param [Hash] props - properties to create object from - # @return [Address] + # @return [Option] def self.create(props) obj = Option.new if props props.each do |key, value| obj.send("#{key}=", value) if obj.respond_to? key \ No newline at end of file