Class: Handwritingio::Handwriting
- Inherits:
-
Object
- Object
- Handwritingio::Handwriting
- Defined in:
- lib/handwritingio.rb
Overview
Handwriting class returned from Client#handwritings and Client#handwriting
Instance Attribute Summary collapse
-
#date_created ⇒ Object
readonly
Returns the value of attribute date_created.
-
#date_modified ⇒ Object
readonly
Returns the value of attribute date_modified.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#rating_character_width ⇒ Object
readonly
Returns the value of attribute rating_character_width.
-
#rating_cursivity ⇒ Object
readonly
Returns the value of attribute rating_cursivity.
-
#rating_embellishment ⇒ Object
readonly
Returns the value of attribute rating_embellishment.
-
#rating_neatness ⇒ Object
readonly
Returns the value of attribute rating_neatness.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Class Method Summary collapse
-
.initialize_many(hashes) ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Handwriting
constructor
:nodoc:.
-
#inspect ⇒ Object
:nodoc:.
Constructor Details
#initialize(hash) ⇒ Handwriting
:nodoc:
184 185 186 187 188 189 190 191 192 193 |
# File 'lib/handwritingio.rb', line 184 def initialize(hash) #:nodoc: @id = hash['id'] @title = hash['title'] @date_created = DateTime.parse(hash['date_created']) @date_modified = DateTime.parse(hash['date_modified']) = hash['rating_neatness'] = hash['rating_cursivity'] = hash['rating_embellishment'] = hash['rating_character_width'] end |
Instance Attribute Details
#date_created ⇒ Object (readonly)
Returns the value of attribute date_created.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def date_created @date_created end |
#date_modified ⇒ Object (readonly)
Returns the value of attribute date_modified.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def date_modified @date_modified end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def id @id end |
#rating_character_width ⇒ Object (readonly)
Returns the value of attribute rating_character_width.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def end |
#rating_cursivity ⇒ Object (readonly)
Returns the value of attribute rating_cursivity.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def end |
#rating_embellishment ⇒ Object (readonly)
Returns the value of attribute rating_embellishment.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def end |
#rating_neatness ⇒ Object (readonly)
Returns the value of attribute rating_neatness.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
183 184 185 |
# File 'lib/handwritingio.rb', line 183 def title @title end |
Class Method Details
.initialize_many(hashes) ⇒ Object
:nodoc:
199 200 201 |
# File 'lib/handwritingio.rb', line 199 def self.initialize_many(hashes) #:nodoc: hashes.map{ |hash| new(hash) } end |
Instance Method Details
#inspect ⇒ Object
:nodoc:
195 196 197 |
# File 'lib/handwritingio.rb', line 195 def inspect #:nodoc: "#<#{self.class.name} id=#{@id.inspect} title=#{@title.inspect}>" end |