Sha256: dcd151b03c50aed3077742bfa47fc6eef30e67ce2a496e08475af93cc1c3e8d5

Contents?: true

Size: 364 Bytes

Versions: 29

Compression:

Stored size: 364 Bytes

Contents

module MeducationSDK

  class Author < Resource
    self.path = "/authors"

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

  class AuthorMock < Author
    extend Loquor::ResourceMock

    self.attributes = {
      id: 728,
      user_id: 100,
      name: 'Dr Buick',
      occupation: "Doctor",
      qualifications: "All of them"
    }
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
meducation_sdk-1.6.10 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.6 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.5 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.4 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.3 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.2 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.1 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.0 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.5.7 lib/meducation_sdk/resources/author.rb