Sha256: d767766060c3068103e6a2dd8c1ba1de2952efc24e4e66aee19e38231b4e9b75
Contents?: true
Size: 286 Bytes
Versions: 2
Compression:
Stored size: 286 Bytes
Contents
module Rooftop module Post def self.included(base) base.include Rooftop::Base base.include Rooftop::Nested base.extend ClassMethods end module ClassMethods def post_type=(type) self.api_endpoint = type.pluralize end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rooftop-0.0.5 | lib/rooftop/post.rb |
rooftop-0.0.3 | lib/rooftop/post.rb |