module Subjoin::Metable

Generically handle meta objects

Attributes

meta[R]

The object's meta attribute @return [Meta]

Public Instance Methods

has_meta?() click to toggle source
# File lib/subjoin/metable.rb, line 17
def has_meta?
  return ! @meta.nil?
end
load_meta(data) click to toggle source

Load the object's attributes @param data [Hash] The object's parsed JSON `meta` member @return [Metable,nil]

# File lib/subjoin/metable.rb, line 12
def load_meta(data)
  return nil if data.nil?
  Meta.new(data)
end