class Jafry::Scheme

Class for parsing json scheme

Attributes

self_name[RW]

Public Instance Methods

build() click to toggle source

Return json from scheme

@return [String] JSON from scheme

# File lib/jafry/scheme.rb, line 18
def build
  encode_json self
end
update(options) click to toggle source

Updates scheme with specified options

@param options [Hash] Options to update @return [Scheme] Updated scheme

# File lib/jafry/scheme.rb, line 27
def update(options)
  options.each do |attr, value|
    self[attr] = value if self[attr]
  end
  self
end