Class: Contentful::Space
- Inherits:
-
BaseResource
- Object
- BaseResource
- Contentful::Space
- Defined in:
- lib/contentful/space.rb
Overview
Resource class for Space. www.contentful.com/developers/documentation/content-delivery-api/#spaces
Instance Attribute Summary collapse
-
#locales ⇒ Object
readonly
Returns the value of attribute locales.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from BaseResource
#_metadata, #default_locale, #raw, #sys
Instance Method Summary collapse
-
#initialize(item) ⇒ Space
constructor
A new instance of Space.
- #reload(client = nil) ⇒ Object
Methods inherited from BaseResource
#==, #inspect, #marshal_dump, #marshal_load
Constructor Details
Instance Attribute Details
#locales ⇒ Object (readonly)
Returns the value of attribute locales.
8 9 10 |
# File 'lib/contentful/space.rb', line 8 def locales @locales end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/contentful/space.rb', line 8 def name @name end |
Instance Method Details
#reload(client = nil) ⇒ Object
18 19 20 21 22 |
# File 'lib/contentful/space.rb', line 18 def reload(client = nil) return client.space unless client.nil? false end |