Class: SchemaDotOrg::Organization

Inherits:
SchemaType
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from SchemaType

#to_json, #to_json_ld, #to_json_struct, #to_s, #un_namespaced_classname

Instance Attribute Details

#emailObject

Returns the value of attribute email.



11
12
13
# File 'lib/schema_dot_org/organization.rb', line 11

def email
  @email
end

#founderObject

Returns the value of attribute founder.



11
12
13
# File 'lib/schema_dot_org/organization.rb', line 11

def founder
  @founder
end

#founding_dateObject

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_locationObject

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

#logoObject

Returns the value of attribute logo.



11
12
13
# File 'lib/schema_dot_org/organization.rb', line 11

def 
  @logo
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/schema_dot_org/organization.rb', line 11

def name
  @name
end

#same_asObject

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

#urlObject

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_structObject



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" => ,
    "founder" => founder.to_json_struct,
    "foundingDate" => founding_date.to_s,
    "foundingLocation" => founding_location.to_json_struct,
    "sameAs" => same_as
  }
end