Class: WCC::Blogs::Property
- Inherits:
-
Object
- Object
- WCC::Blogs::Property
- Extended by:
- Utils
- Includes:
- Concerns::Caching
- Defined in:
- lib/wcc/blogs/property.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Class Method Summary collapse
Instance Method Summary collapse
- #_links ⇒ Object
-
#initialize(raw, client: WCC::Blogs.client) ⇒ Property
constructor
A new instance of Property.
- #to_param ⇒ Object
Methods included from Utils
camelcase, define_camelcase_alias
Methods included from Concerns::Caching
#cache_key, #cache_key_with_version, #cache_version
Constructor Details
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
15 16 17 |
# File 'lib/wcc/blogs/property.rb', line 15 def raw @raw end |
Class Method Details
Instance Method Details
#_links ⇒ Object
34 35 36 |
# File 'lib/wcc/blogs/property.rb', line 34 def _links OpenStruct.new(raw['_links'] || {}) end |
#to_param ⇒ Object
22 23 24 |
# File 'lib/wcc/blogs/property.rb', line 22 def to_param key end |