Class: SchemaDotOrg::Organization
- Inherits:
-
SchemaType
- Object
- ValidatedObject::Base
- SchemaType
- SchemaDotOrg::Organization
- Defined in:
- lib/schema_dot_org/organization.rb
Constant Summary
Constants inherited from SchemaType
SchemaType::ROOT_ATTR, SchemaType::UNQUALIFIED_CLASS_NAME_REGEX
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#founder ⇒ Object
Returns the value of attribute founder.
-
#founding_date ⇒ Object
Returns the value of attribute founding_date.
-
#founding_location ⇒ Object
Returns the value of attribute founding_location.
-
#logo ⇒ Object
Returns the value of attribute logo.
-
#name ⇒ Object
Returns the value of attribute name.
-
#same_as ⇒ Object
Returns the value of attribute same_as.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods inherited from SchemaType
#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def email @email end |
#founder ⇒ Object
Returns the value of attribute founder.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def founder @founder end |
#founding_date ⇒ Object
Returns the value of attribute founding_date.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def founding_date @founding_date end |
#founding_location ⇒ Object
Returns the value of attribute founding_location.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def founding_location @founding_location end |
#logo ⇒ Object
Returns the value of attribute logo.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def logo @logo end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def name @name end |
#same_as ⇒ Object
Returns the value of attribute same_as.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def same_as @same_as end |
#url ⇒ Object
Returns the value of attribute url.
11 12 13 |
# File 'lib/schema_dot_org/organization.rb', line 11 def url @url end |
Instance Method Details
#_to_json_struct ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/schema_dot_org/organization.rb', line 29 def _to_json_struct { "name" => name, "email" => email, "url" => url, "logo" => logo, "founder" => founder.to_json_struct, "foundingDate" => founding_date.to_s, "foundingLocation" => founding_location.to_json_struct, "sameAs" => same_as } end |