Class: Dotloop::Models::Profile
- Inherits:
-
Object
- Object
- Dotloop::Models::Profile
- Defined in:
- lib/dotloop/models/profile.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
22 23 24 |
# File 'lib/dotloop/models/profile.rb', line 22 def client @client end |
Instance Method Details
#create_loop(data) ⇒ Object
28 29 30 |
# File 'lib/dotloop/models/profile.rb', line 28 def create_loop(data) client.Loop.create(profile_id: id, params: data) end |
#loop_it(data) ⇒ Object
32 33 34 |
# File 'lib/dotloop/models/profile.rb', line 32 def loop_it(data) client.Loop.loop_it(profile_id: id, params: data) end |
#loops ⇒ Object
24 25 26 |
# File 'lib/dotloop/models/profile.rb', line 24 def loops client.Loop.all(profile_id: id) end |