Class: Railsdav::Renderer::ResourceDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/railsdav/renderer/resource_descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, props) ⇒ ResourceDescriptor

Returns a new instance of ResourceDescriptor.



8
9
10
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 8

def initialize(url, props)
  @url, @props = url, props
end

Instance Attribute Details

#propsObject

Returns the value of attribute props.



6
7
8
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 6

def props
  @props
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 6

def url
  @url
end

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 12

def collection?
  self.props[:format] == :collection
end