Class: Dotloop::Participant
- Inherits:
-
Object
- Object
- Dotloop::Participant
- Defined in:
- lib/dotloop/participant.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #all(profile_id:, loop_view_id:) ⇒ Object
-
#initialize(client:) ⇒ Participant
constructor
A new instance of Participant.
Constructor Details
#initialize(client:) ⇒ Participant
Returns a new instance of Participant.
5 6 7 |
# File 'lib/dotloop/participant.rb', line 5 def initialize(client:) @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/dotloop/participant.rb', line 3 def client @client end |
Instance Method Details
#all(profile_id:, loop_view_id:) ⇒ Object
9 10 11 12 13 |
# File 'lib/dotloop/participant.rb', line 9 def all(profile_id:, loop_view_id:) @client.get("/profile/#{profile_id.to_i}/loop/#{loop_view_id.to_i}/participant").map do |participant_attrs| Dotloop::Models::Participant.new(participant_attrs) end end |