Class: OsunyApi::Communication

Inherits:
Resource
  • Object
show all
Defined in:
lib/osuny_api/communication.rb

Defined Under Namespace

Classes: Website

Instance Attribute Summary

Attributes inherited from Resource

#client, #parent

Instance Method Summary collapse

Methods inherited from Resource

#full_path, #initialize

Constructor Details

This class inherits a constructor from OsunyApi::Resource

Instance Method Details

#pathObject



3
4
5
# File 'lib/osuny_api/communication.rb', line 3

def path
  'communication/'
end

#website(id = nil) ⇒ Object



7
8
9
10
11
# File 'lib/osuny_api/communication.rb', line 7

def website(id = nil)
  @website ||= Website.new(client: client, parent: self)
  @website.id = id
  @website
end