gtsr/lib/gts/dish.rb
# Parse a json string representing a dish and populate this object
# with the data overwriting anything already present.
Parse a json string representing a dish and populate this object
with the data overwriting anything already present.
Parse a json string representing a dish and populate this object with the data overwriting anything already present .
def parse(json_s)
    hash = JSON.parse(json_s)
    @submitter = hash[:submitter.to_s]
    @period = hash[:period.to_s]
    @random = hash[:random.to_s]
  end
def parse ( json_s ) hash = JSON . parse ( json_s ) @submitter = hash [ :submitter . to_s ] @period = hash [ :period . to_s ] @random = hash [ :random . to_s ] end
Parse a json string representing a dish and populate this object
with the data overwriting anything already present.
Parse a json string representing a dish and populate this object with the data overwriting anything already present .
json_s
<not_specific>