Class: Railsdav::Renderer::ResourceDescriptor
- Inherits:
-
Object
- Object
- Railsdav::Renderer::ResourceDescriptor
- Defined in:
- lib/railsdav/renderer/resource_descriptor.rb
Instance Attribute Summary collapse
-
#props ⇒ Object
Returns the value of attribute props.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #collection? ⇒ Boolean
-
#initialize(url, props) ⇒ ResourceDescriptor
constructor
A new instance of ResourceDescriptor.
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
#props ⇒ Object
Returns the value of attribute props.
6 7 8 |
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 6 def props @props end |
#url ⇒ Object
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
12 13 14 |
# File 'lib/railsdav/renderer/resource_descriptor.rb', line 12 def collection? self.props[:format] == :collection end |