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.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def email @email end |
#founder ⇒ Object
Returns the value of attribute founder.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def founder @founder end |
#founding_date ⇒ Object
Returns the value of attribute founding_date.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def founding_date @founding_date end |
#founding_location ⇒ Object
Returns the value of attribute founding_location.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def founding_location @founding_location end |
#logo ⇒ Object
Returns the value of attribute logo.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def logo @logo end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def name @name end |
#same_as ⇒ Object
Returns the value of attribute same_as.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def same_as @same_as end |
#url ⇒ Object
Returns the value of attribute url.
7 8 9 |
# File 'lib/schema_dot_org/organization.rb', line 7 def url @url end |
Instance Method Details
#_to_json_struct ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/schema_dot_org/organization.rb', line 25 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 |