Class: OsunyApi::Communication::Website
- Defined in:
- lib/osuny_api/communication/website.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from OsunyApi::Resource
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/osuny_api/communication/website.rb', line 3 def id @id end |
Instance Method Details
#page ⇒ Object
14 15 16 |
# File 'lib/osuny_api/communication/website.rb', line 14 def page @page ||= Page.new(client: client, parent: self) end |
#path ⇒ Object
5 6 7 8 |
# File 'lib/osuny_api/communication/website.rb', line 5 def path id.nil? ? "websites/" : "websites/#{id}/" end |