Class: Proz::WiwoEntries

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/proz/wiwo_entries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject (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

#entriesObject



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_entriesObject



16
17
18
# File 'lib/proz/wiwo_entries.rb', line 16

def wiwo_entries
  all_wiwos["wiwos"]
end