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-2.2.2 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.2.1 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.2.0 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.1.4 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.1.3 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.1.2 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.1.1 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.1.0 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.5 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.4 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.3 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.2 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.1 lib/meducation_sdk/resources/author.rb
meducation_sdk-2.0.0 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.16 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.15 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.14 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.13 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.12 lib/meducation_sdk/resources/author.rb
meducation_sdk-1.6.11 lib/meducation_sdk/resources/author.rb