Sha256: 96c513242286bc3e52441ce53fc018da0a3439be6c2966933c4e6b7f88efd551
Contents?: true
Size: 514 Bytes
Versions: 3
Compression:
Stored size: 514 Bytes
Contents
module MeducationSDK class BlogPost < Loquor::Resource self.path = "/blog_posts" def user @user ||= User.find(user_id) end def blogger @blogger ||= Blogger.find(blogger_id) end end class BlogPostMock < BlogPost extend Loquor::ResourceMock self.attributes = { id: 1, blogger_id: 8, user_id: 14, title: "My First Blog Post", slug: "my-first-blog-post", header_url: '/defaults/blog_posts/headers/missing_card.png' } end end
Version data entries
3 entries across 3 versions & 1 rubygems