Class: Nelumba::Image
Constant Summary
Constants included from Object
Object::USERNAME_REGULAR_EXPRESSION
Instance Attribute Summary collapse
-
#full_image ⇒ Object
readonly
Returns the value of attribute full_image.
Attributes included from Object
#author, #content, #display_name, #html, #image, #published, #summary, #text, #title, #uid, #updated, #url
Instance Method Summary collapse
- #init(options = {}, &blk) ⇒ Object
-
#initialize(options = {}, &blk) ⇒ Image
constructor
A new instance of Image.
- #to_hash ⇒ Object
- #to_json_hash ⇒ Object
Methods included from Object
#mentions, #reply_to, #to_as1, #to_html, #to_json, #to_text
Constructor Details
#initialize(options = {}, &blk) ⇒ Image
Returns a new instance of Image.
7 8 9 |
# File 'lib/nelumba/image.rb', line 7 def initialize( = {}, &blk) init(, &blk) end |
Instance Attribute Details
#full_image ⇒ Object (readonly)
Returns the value of attribute full_image.
5 6 7 |
# File 'lib/nelumba/image.rb', line 5 def full_image @full_image end |
Instance Method Details
#init(options = {}, &blk) ⇒ Object
11 12 13 14 15 |
# File 'lib/nelumba/image.rb', line 11 def init( = {}, &blk) super(, &blk) @full_image = [:full_image] end |
#to_hash ⇒ Object
17 18 19 20 21 |
# File 'lib/nelumba/image.rb', line 17 def to_hash { :full_image => @full_image }.merge(super) end |
#to_json_hash ⇒ Object
23 24 25 26 27 28 |
# File 'lib/nelumba/image.rb', line 23 def to_json_hash { :objectType => "image", :fullImage => @full_image }.merge(super) end |