Class: Puree::Event
Overview
Event resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#city ⇒ String
City.
-
#country ⇒ String
Country.
-
#date ⇒ Hash
Date.
-
#description ⇒ String
Description.
-
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Event
constructor
A new instance of Event.
-
#location ⇒ String
Location.
-
#metadata ⇒ Hash
All metadata.
-
#title ⇒ String
Title.
-
#type ⇒ String
Type.
Methods inherited from Resource
#created, #get, #locale, #modified, #set_content, #uuid
Constructor Details
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Event
Returns a new instance of Event.
11 12 13 14 15 16 17 |
# File 'lib/puree/event.rb', line 11 def initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) super(api: :event, base_url: base_url, username: username, password: password, basic_auth: basic_auth) end |
Instance Method Details
#city ⇒ String
City
23 24 25 |
# File 'lib/puree/event.rb', line 23 def city @metadata['city'] end |
#country ⇒ String
Country
30 31 32 |
# File 'lib/puree/event.rb', line 30 def country @metadata['country'] end |
#date ⇒ Hash
Date
37 38 39 |
# File 'lib/puree/event.rb', line 37 def date @metadata['date'] end |
#description ⇒ String
Description
44 45 46 |
# File 'lib/puree/event.rb', line 44 def description @metadata['description'] end |
#location ⇒ String
Location
51 52 53 |
# File 'lib/puree/event.rb', line 51 def location @metadata['location'] end |
#metadata ⇒ Hash
All metadata
72 73 74 |
# File 'lib/puree/event.rb', line 72 def @metadata end |
#title ⇒ String
Title
58 59 60 |
# File 'lib/puree/event.rb', line 58 def title @metadata['title'] end |
#type ⇒ String
Type
65 66 67 |
# File 'lib/puree/event.rb', line 65 def type @metadata['type'] end |