Sha256: a5455630aea3f81d9a536685a33b3cfadcea2d4592a71764c817c68218afe8b1
Contents?: true
Size: 764 Bytes
Versions: 16
Compression:
Stored size: 764 Bytes
Contents
# Class Category represents structure of category: # # category = Category.new # category.code # => String # category.group # => String # category.category # => String # category.hidden # => Boolean # category.annotations # => Array of Annotation objects # category.from_array(array) # => Array of Category objects # class Category < Struct.new(:group, :category, :code, :annotations, :hidden) # Method +from_array+ returns array of categories(create from json). # Takes value of array objects as json parameter array. # # Example: # # Category.from_array([...array of JSON objects...]) # => Array of Category # def self.from_array(array) array.collect do |element| Category.new(element) end end end
Version data entries
16 entries across 16 versions & 1 rubygems