Class: Proz::WiwoEntries
- Inherits:
-
Object
- Object
- Proz::WiwoEntries
- Includes:
- HTTParty
- Defined in:
- lib/proz/wiwo_entries.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Instance Method Summary collapse
- #entries ⇒ Object
-
#initialize(api_key:) ⇒ WiwoEntries
constructor
A new instance of WiwoEntries.
- #user_entries(user_uuid) ⇒ Object
- #wiwo_entries ⇒ Object
Constructor Details
#initialize(api_key:) ⇒ WiwoEntries
Returns a new instance of WiwoEntries.
8 9 10 |
# File 'lib/proz/wiwo_entries.rb', line 8 def initialize(api_key:) @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/proz/wiwo_entries.rb', line 7 def api_key @api_key end |
Instance Method Details
#entries ⇒ Object
12 13 14 |
# File 'lib/proz/wiwo_entries.rb', line 12 def entries all_wiwos end |
#user_entries(user_uuid) ⇒ Object
20 21 22 |
# File 'lib/proz/wiwo_entries.rb', line 20 def user_entries all_wiwos["users"] end |
#wiwo_entries ⇒ Object
16 17 18 |
# File 'lib/proz/wiwo_entries.rb', line 16 def wiwo_entries all_wiwos["wiwos"] end |