Sha256: 061476ea67f70a92df82e5c74c1fae5f215b18fd675cf03d63cdd1a9aa8fd015
Contents?: true
Size: 274 Bytes
Versions: 2
Compression:
Stored size: 274 Bytes
Contents
module Rooftop class Menu include Rooftop::Base has_many :menu_items, class: "Rooftop::MenuItem" self.api_namespace = "wp-api-menus" self.api_version = 2 # coerce_field items: ->(items) { items.collect {|i| MenuItem.new(i)} unless items.nil?} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rooftop-0.0.5 | lib/rooftop/models/menu.rb |
rooftop-0.0.3 | lib/rooftop/models/menu.rb |