Sha256: 586858fd7d75bfaf75d018caf6d54839dcfd789ba23a2355ee292a92646e9d8d

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

module MeducationSDK
  class Blogger < Loquor::Resource
    self.path = "/bloggers"

    def user
      @user ||= User.find(user_id)
    end
  end

  class BloggerMock < Blogger
    extend Loquor::ResourceMock

    self.attributes = {
      id: 1,
      user_id: 14,
      name: "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

Version Path
meducation_sdk-1.4.3 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.4.2 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.4.1 lib/meducation_sdk/resources/blogger.rb