Sha256: a9ce5bb1a5bc893c3b781967e430062bc222512c61239132faa01a594dcf43a1

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

module Xolphin
  module Api
    module Responses
      class Notes < Base
        def initialize(data)
          super(data)
        end

        def notes
          @notes ||= begin
            notes = []
            if _embedded && _embedded["notes"]
              _embedded["notes"].each do |note|
                notes << Note.new(note)
              end
            end
            notes
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xolphin-api-1.9.0 lib/xolphin/api/responses/notes.rb
xolphin-api-1.8.0 lib/xolphin/api/responses/notes.rb