Class: WCC::Blogs::Property
- Inherits:
-
Object
- Object
- WCC::Blogs::Property
- Extended by:
- Utils
- 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
Constructor Details
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
12 13 14 |
# File 'lib/wcc/blogs/property.rb', line 12 def raw @raw end |
Class Method Details
Instance Method Details
#_links ⇒ Object
31 32 33 |
# File 'lib/wcc/blogs/property.rb', line 31 def _links OpenStruct.new(raw['_links'] || {}) end |
#to_param ⇒ Object
19 20 21 |
# File 'lib/wcc/blogs/property.rb', line 19 def to_param key end |