Sha256: 489146e30d83117805dcd660ed9590322c9bd941a6294be2d48f7aece2f5c8de
Contents?: true
Size: 506 Bytes
Versions: 7
Compression:
Stored size: 506 Bytes
Contents
module MeducationSDK class BlogPost < 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
7 entries across 7 versions & 1 rubygems