class Contentful::Space
Resource class for Space
. www.contentful.com/developers/documentation/content-delivery-api/#spaces
Attributes
Public Class Methods
Source
# File lib/contentful/space.rb, line 10 def initialize(item, *) super @name = item.fetch('name', nil) @locales = item.fetch('locales', []).map { |locale| Locale.new(locale) } end
Calls superclass method
Contentful::BaseResource::new
Public Instance Methods
Source
# File lib/contentful/space.rb, line 18 def reload(client = nil) return client.space unless client.nil? false end
@private