Class: WCC::Blogs::LinkedBlogPostSummary
- Inherits:
-
Object
- Object
- WCC::Blogs::LinkedBlogPostSummary
- Extended by:
- Utils
- Defined in:
- lib/wcc/blogs/linked_blog_post_summary.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #_links ⇒ Object
- #full_post ⇒ Object
-
#initialize(raw, client: WCC::Blogs.client) ⇒ LinkedBlogPostSummary
constructor
A new instance of LinkedBlogPostSummary.
Methods included from Utils
camelcase, define_camelcase_alias
Constructor Details
#initialize(raw, client: WCC::Blogs.client) ⇒ LinkedBlogPostSummary
Returns a new instance of LinkedBlogPostSummary.
9 10 11 12 |
# File 'lib/wcc/blogs/linked_blog_post_summary.rb', line 9 def initialize(raw, client: WCC::Blogs.client) @raw = raw @client = client end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
7 8 9 |
# File 'lib/wcc/blogs/linked_blog_post_summary.rb', line 7 def raw @raw end |
Instance Method Details
#_links ⇒ Object
34 35 36 |
# File 'lib/wcc/blogs/linked_blog_post_summary.rb', line 34 def _links OpenStruct.new(raw['_links'] || {}) end |