Sha256: 5b47f6141c41e01fdf144de8c78526432a9462cb9d2de54636b54b06b75dfb14

Contents?: true

Size: 409 Bytes

Versions: 37

Compression:

Stored size: 409 Bytes

Contents

module MeducationSDK
  class Blogger < 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

37 entries across 37 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.6 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.5 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.4 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.3 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.2 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.1 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.5.0 lib/meducation_sdk/resources/blogger.rb
meducation_sdk-1.4.4 lib/meducation_sdk/resources/blogger.rb